Skip to content

Commit

Permalink
should build on stable rust (#6)
Browse files Browse the repository at this point in the history
This PR replaces the use of unsable feature
rust-lang/rust#91946 with its corresponding
stable branch equivalent that is slightly more verbose.
  • Loading branch information
waynr authored Dec 25, 2023
1 parent ae4ebcf commit 531a2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comp_decomp_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl<'a, T: DataSink> Conv<'a, T> {

impl<'a, T: DataSink> Write for Conv<'a, T> {
fn write(&mut self, data: &[u8]) -> std::io::Result<usize> {
self.t.add(data).map(|_|data.len()).map_err(|e| std::io::Error::other(e))
self.t.add(data).map(|_|data.len()).map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
}
fn flush(&mut self) -> std::io::Result<()> {
Ok(())
Expand Down

0 comments on commit 531a2e6

Please sign in to comment.