[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2022-01-28 09:25:33 +00:00
parent beae363402
commit f34623b114

View File

@ -49,7 +49,11 @@ pub fn merge_args_into_config(config: &mut CompleteConfig, args: Args) {
}
// Frontend section of the config
if let Some(date_shown) = args.date_shown {
config.frontend.date_shown = if let "true" = date_shown.as_str() { true } else { false };
config.frontend.date_shown = if let "true" = date_shown.as_str() {
true
} else {
false
};
}
if let Some(maximum_username_length) = args.max_username_length {
config.frontend.maximum_username_length = maximum_username_length;