Skip to content

Commit 5da6467

Browse files
authored
Fix clippy error in bzip2 encoder.rs
Signed-off-by: Jiahao XU <[email protected]>
1 parent c20c334 commit 5da6467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codec/bzip2/encoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl Encode for BzEncoder {
116116

117117
// There was insufficient memory in the input or output buffer to complete
118118
// the request, but otherwise everything went normally.
119-
Status::MemNeeded => Err(io::Error::new(io::ErrorKind::Other, "out of memory")),
119+
Status::MemNeeded => Err(io::Error::other("out of memory")),
120120
}
121121
}
122122

@@ -142,7 +142,7 @@ impl Encode for BzEncoder {
142142

143143
// There was insufficient memory in the input or output buffer to complete
144144
// the request, but otherwise everything went normally.
145-
Status::MemNeeded => Err(io::Error::new(io::ErrorKind::Other, "out of memory")),
145+
Status::MemNeeded => Err(io::Error::other("out of memory")),
146146
}
147147
}
148148
}

0 commit comments

Comments
 (0)