apply_preset_5 and apply_preset_6 to set correct compression levels. (#425)
The for loop in apply_preset_5 was not including 9. apply_preset_6 now builds now calls apply_preset_4 instead of apply_preset_5, and adds all compression levels from 1 to 9. Co-authored-by: Nino Burini <nburini@jabra.com>
This commit is contained in:
parent
8053211bf4
commit
2d16819cbf
1 changed files with 3 additions and 3 deletions
|
|
@ -263,7 +263,7 @@ impl Options {
|
|||
fn apply_preset_5(mut self) -> Self {
|
||||
if let Deflaters::Zlib { compression, .. } = &mut self.deflate {
|
||||
compression.clear();
|
||||
for i in 3..9 {
|
||||
for i in 3..10 {
|
||||
compression.insert(i);
|
||||
}
|
||||
}
|
||||
|
|
@ -273,11 +273,11 @@ impl Options {
|
|||
fn apply_preset_6(mut self) -> Self {
|
||||
if let Deflaters::Zlib { compression, .. } = &mut self.deflate {
|
||||
compression.clear();
|
||||
for i in 1..3 {
|
||||
for i in 1..10 {
|
||||
compression.insert(i);
|
||||
}
|
||||
}
|
||||
self.apply_preset_5()
|
||||
self.apply_preset_4()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue