Skip to content

Commit e510c6d

Browse files
committed
beta clippy
1 parent e47d885 commit e510c6d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libs/common/src/version.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ impl Serialize for Version {
211211
{
212212
let mut version = format!("{}.{}.{}", self.major, self.minor, self.patch);
213213
if let Some(build) = self.build {
214-
write!(version, ".{build}").unwrap();
214+
write!(version, ".{build}").expect("should be able to write build number");
215215
}
216216
if let Some(hash) = &self.hash {
217-
write!(version, "-{hash}").unwrap();
217+
write!(version, "-{hash}").expect("should be able to write hash");
218218
}
219219
serializer.serialize_str(&version)
220220
}

libs/lzo/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub fn compress(input: &[u8], output: &mut Vec<u8>) -> Result<(), LzoError> {
5757
input.as_ptr(),
5858
input.len(),
5959
output.as_mut_ptr(),
60-
&mut out_len,
60+
&raw mut out_len,
6161
wrkmem,
6262
);
6363

@@ -85,7 +85,7 @@ pub fn compress_to_slice<'a>(in_: &[u8], out: &'a mut [u8]) -> Result<&'a mut [u
8585
in_.as_ptr(),
8686
in_.len(),
8787
out.as_mut_ptr(),
88-
&mut out_len,
88+
&raw mut out_len,
8989
wrkmem,
9090
);
9191
libc::free(wrkmem);
@@ -110,7 +110,7 @@ pub fn decompress_to_slice<'a>(in_: &[u8], out: &'a mut [u8]) -> Result<&'a mut
110110
in_.as_ptr(),
111111
in_.len(),
112112
out.as_mut_ptr(),
113-
&mut out_len,
113+
&raw mut out_len,
114114
);
115115
let res = mem::transmute::<i32, LzoError>(err);
116116
if res == LzoError::Ok {

0 commit comments

Comments
 (0)