Skip to content

Commit 908c79f

Browse files
committed
should build on stable rust
This PR replaces the use of unsable feature rust-lang/rust#91946 with its corresponding stable branch equivalent that is slightly more verbose.
1 parent 7bbcefc commit 908c79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp_decomp_2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl<'a, T: DataSink> Conv<'a, T> {
1515

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

0 commit comments

Comments
 (0)