Skip to content

Commit f4be9bb

Browse files
authored
Merge pull request #954 from JasonLG1979/remove-dep-warning
Remove basic normalisation deprecation warning
2 parents c8971dc + 3c749a8 commit f4be9bb

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

src/main.rs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,12 +1293,7 @@ fn get_setup() -> Setup {
12931293
normalisation_method = opt_str(NORMALISATION_METHOD)
12941294
.as_deref()
12951295
.map(|method| {
1296-
warn!(
1297-
"`--{}` / `-{}` will be deprecated in a future release.",
1298-
NORMALISATION_METHOD, NORMALISATION_METHOD_SHORT
1299-
);
1300-
1301-
let method = NormalisationMethod::from_str(method).unwrap_or_else(|_| {
1296+
NormalisationMethod::from_str(method).unwrap_or_else(|_| {
13021297
invalid_error_msg(
13031298
NORMALISATION_METHOD,
13041299
NORMALISATION_METHOD_SHORT,
@@ -1308,16 +1303,7 @@ fn get_setup() -> Setup {
13081303
);
13091304

13101305
exit(1);
1311-
});
1312-
1313-
if matches!(method, NormalisationMethod::Basic) {
1314-
warn!(
1315-
"`--{}` / `-{}` {:?} will be deprecated in a future release.",
1316-
NORMALISATION_METHOD, NORMALISATION_METHOD_SHORT, method
1317-
);
1318-
}
1319-
1320-
method
1306+
})
13211307
})
13221308
.unwrap_or(player_default_config.normalisation_method);
13231309

0 commit comments

Comments
 (0)