Skip to content

Commit

Permalink
Syntax fix for older rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
xoac committed Sep 15, 2019
1 parent 83b1b62 commit 06de225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serial-windows/src/com.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl io::Read for COMPort {
}
}

impl io::Read for &COMPort {
impl<'a> io::Read for &'a COMPort {
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
self.read_impl()
}
Expand All @@ -178,7 +178,7 @@ impl io::Write for COMPort {
}
}

impl io::Write for &COMPort {
impl<'a> io::Write for &'a COMPort {
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
self.write_impl()
}
Expand Down

0 comments on commit 06de225

Please sign in to comment.