Skip to content

Commit

Permalink
Merge pull request #954 from JasonLG1979/remove-dep-warning
Browse files Browse the repository at this point in the history
Remove basic normalisation deprecation warning
  • Loading branch information
roderickvd committed Jan 28, 2022
2 parents c8971dc + 3c749a8 commit f4be9bb
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1293,12 +1293,7 @@ fn get_setup() -> Setup {
normalisation_method = opt_str(NORMALISATION_METHOD)
.as_deref()
.map(|method| {
warn!(
"`--{}` / `-{}` will be deprecated in a future release.",
NORMALISATION_METHOD, NORMALISATION_METHOD_SHORT
);

let method = NormalisationMethod::from_str(method).unwrap_or_else(|_| {
NormalisationMethod::from_str(method).unwrap_or_else(|_| {
invalid_error_msg(
NORMALISATION_METHOD,
NORMALISATION_METHOD_SHORT,
Expand All @@ -1308,16 +1303,7 @@ fn get_setup() -> Setup {
);

exit(1);
});

if matches!(method, NormalisationMethod::Basic) {
warn!(
"`--{}` / `-{}` {:?} will be deprecated in a future release.",
NORMALISATION_METHOD, NORMALISATION_METHOD_SHORT, method
);
}

method
})
})
.unwrap_or(player_default_config.normalisation_method);

Expand Down

0 comments on commit f4be9bb

Please sign in to comment.