Skip to content

Commit e1cd346

Browse files
committed
Syntax fix for older rust version. Fix empty parameters
1 parent 83b1b62 commit e1cd346

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

serial-windows/src/com.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,25 +162,25 @@ impl io::Read for COMPort {
162162
}
163163
}
164164

165-
impl io::Read for &COMPort {
165+
impl<'a> io::Read for &'a COMPort {
166166
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
167-
self.read_impl()
167+
self.read_impl(buf)
168168
}
169169
}
170170

171171
impl io::Write for COMPort {
172172
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
173-
self.write_impl()
173+
self.write_impl(buf)
174174
}
175175

176176
fn flush(&mut self) -> io::Result<()> {
177177
self.flush_impl()
178178
}
179179
}
180180

181-
impl io::Write for &COMPort {
181+
impl<'a> io::Write for &'a COMPort {
182182
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
183-
self.write_impl()
183+
self.write_impl(buf)
184184
}
185185

186186
fn flush(&mut self) -> io::Result<()> {

0 commit comments

Comments
 (0)