We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83b1b62 commit e1cd346Copy full SHA for e1cd346
serial-windows/src/com.rs
@@ -162,25 +162,25 @@ impl io::Read for COMPort {
162
}
163
164
165
-impl io::Read for &COMPort {
+impl<'a> io::Read for &'a COMPort {
166
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
167
- self.read_impl()
+ self.read_impl(buf)
168
169
170
171
impl io::Write for COMPort {
172
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
173
- self.write_impl()
+ self.write_impl(buf)
174
175
176
fn flush(&mut self) -> io::Result<()> {
177
self.flush_impl()
178
179
180
181
-impl io::Write for &COMPort {
+impl<'a> io::Write for &'a COMPort {
182
183
184
185
186
0 commit comments