Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
timopruesse committed Jun 9, 2022
1 parent 8cedd47 commit d4fdb52
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/config/base_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ pub trait BaseConfig {
}

fn get_valid_file_endings() -> Vec<&'static str> {
let priorities: Vec<&str> = ALLOWED_YAML_EXTENSIONS
ALLOWED_YAML_EXTENSIONS
.iter()
.chain(ALLOWED_JSON_EXTENSIONS.iter())
.cloned()
.collect();

return priorities;
.collect()
}

fn is_valid_file_ending(file_ending: &str) -> bool {
Expand Down

0 comments on commit d4fdb52

Please sign in to comment.