fix more clippy warnings found by "cargo clippy --all-targets --all-features"
This commit is contained in:
parent
f862a0df24
commit
4e42133fe0
2 changed files with 9 additions and 9 deletions
|
|
@ -89,7 +89,7 @@ pub fn cfzlib_deflate(
|
||||||
}
|
}
|
||||||
debug_assert!(stream.total_out as usize <= out.capacity());
|
debug_assert!(stream.total_out as usize <= out.capacity());
|
||||||
out.set_len(stream.total_out as usize);
|
out.set_len(stream.total_out as usize);
|
||||||
return Ok(out);
|
Ok(out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ fn get_opts(input: &Path) -> (OutFile, oxipng::Options) {
|
||||||
|
|
||||||
fn test_it_converts(
|
fn test_it_converts(
|
||||||
input: PathBuf,
|
input: PathBuf,
|
||||||
output: OutFile,
|
output: &OutFile,
|
||||||
opts: oxipng::Options,
|
opts: &oxipng::Options,
|
||||||
color_type_in: ColorType,
|
color_type_in: ColorType,
|
||||||
bit_depth_in: BitDepth,
|
bit_depth_in: BitDepth,
|
||||||
color_type_out: ColorType,
|
color_type_out: ColorType,
|
||||||
|
|
@ -64,8 +64,8 @@ fn verbose_mode() {
|
||||||
|
|
||||||
test_it_converts(
|
test_it_converts(
|
||||||
input,
|
input,
|
||||||
output,
|
&output,
|
||||||
opts,
|
&opts,
|
||||||
ColorType::RGB,
|
ColorType::RGB,
|
||||||
BitDepth::Eight,
|
BitDepth::Eight,
|
||||||
ColorType::RGB,
|
ColorType::RGB,
|
||||||
|
|
@ -378,8 +378,8 @@ fn preserve_attrs() {
|
||||||
|
|
||||||
test_it_converts(
|
test_it_converts(
|
||||||
input,
|
input,
|
||||||
output,
|
&output,
|
||||||
opts,
|
&opts,
|
||||||
ColorType::RGB,
|
ColorType::RGB,
|
||||||
BitDepth::Eight,
|
BitDepth::Eight,
|
||||||
ColorType::RGB,
|
ColorType::RGB,
|
||||||
|
|
@ -430,8 +430,8 @@ fn zopfli_mode() {
|
||||||
|
|
||||||
test_it_converts(
|
test_it_converts(
|
||||||
input,
|
input,
|
||||||
output,
|
&output,
|
||||||
opts,
|
&opts,
|
||||||
ColorType::RGB,
|
ColorType::RGB,
|
||||||
BitDepth::Eight,
|
BitDepth::Eight,
|
||||||
ColorType::RGB,
|
ColorType::RGB,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue