mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
libflate: remove unnecessary as_slice()
calls
This commit is contained in:
parent
5257a5b284
commit
0f54f32a9c
@ -128,7 +128,7 @@ mod tests {
|
||||
debug!("{} bytes deflated to {} ({:.1}% size)",
|
||||
input.len(), cmp.len(),
|
||||
100.0 * ((cmp.len() as f64) / (input.len() as f64)));
|
||||
assert_eq!(input.as_slice(), out.as_slice());
|
||||
assert_eq!(input, out.as_slice());
|
||||
}
|
||||
}
|
||||
|
||||
@ -137,6 +137,6 @@ mod tests {
|
||||
let bytes = vec!(1, 2, 3, 4, 5);
|
||||
let deflated = deflate_bytes(bytes.as_slice()).expect("deflation failed");
|
||||
let inflated = inflate_bytes(deflated.as_slice()).expect("inflation failed");
|
||||
assert_eq!(inflated.as_slice(), bytes.as_slice());
|
||||
assert_eq!(inflated.as_slice(), bytes);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user