fix more clippy warnings found by "cargo clippy --all-targets --all-features" (#130)

This commit is contained in:
Matthias Krüger 2018-08-03 05:19:42 +02:00 committed by Josh Holmer
parent f862a0df24
commit 947ccaad04
2 changed files with 9 additions and 9 deletions

View file

@ -89,7 +89,7 @@ pub fn cfzlib_deflate(
}
debug_assert!(stream.total_out as usize <= out.capacity());
out.set_len(stream.total_out as usize);
return Ok(out);
Ok(out)
}
}

View file

@ -23,8 +23,8 @@ fn get_opts(input: &Path) -> (OutFile, oxipng::Options) {
fn test_it_converts(
input: PathBuf,
output: OutFile,
opts: oxipng::Options,
output: &OutFile,
opts: &oxipng::Options,
color_type_in: ColorType,
bit_depth_in: BitDepth,
color_type_out: ColorType,
@ -64,8 +64,8 @@ fn verbose_mode() {
test_it_converts(
input,
output,
opts,
&output,
&opts,
ColorType::RGB,
BitDepth::Eight,
ColorType::RGB,
@ -378,8 +378,8 @@ fn preserve_attrs() {
test_it_converts(
input,
output,
opts,
&output,
&opts,
ColorType::RGB,
BitDepth::Eight,
ColorType::RGB,
@ -430,8 +430,8 @@ fn zopfli_mode() {
test_it_converts(
input,
output,
opts,
&output,
&opts,
ColorType::RGB,
BitDepth::Eight,
ColorType::RGB,