Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should build on stable rust #6

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
waynr committed Dec 25, 2023
commit 908c79f477206b0dd80fe4199ed84c8f743a2558
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