Add a deprecation warning to level 4 constructor

This commit is contained in:
Ingvar Stepanyan 2020-04-20 11:54:42 +01:00
parent 37459b8df3
commit 8e13c3e0d7

View file

@ -201,7 +201,10 @@ impl Options {
1 => opts.apply_preset_1(),
2 => opts.apply_preset_2(),
3 => opts.apply_preset_3(),
4 => opts.apply_preset_4(),
4 => {
warn!("Level 4 is deprecated and is identical to level 3");
opts.apply_preset_4()
}
5 => opts.apply_preset_5(),
_ => opts.apply_preset_6(),
}