Pre-allocate a HashSet with capacity of 6 instead of 5
Summary: * This should probably be 6, since we create a max of 6 items below
@@ -33,7 +33,7 @@ pub struct WalkDirFileSource<'config> {
}
fn get_expected_file_extensions(config: &Config) -> HashSet<&str> {
- let mut file_extensions = HashSet::<&str>::with_capacity(5);
+ let mut file_extensions = HashSet::<&str>::with_capacity(6);
file_extensions.insert("graphql");
file_extensions.insert("gql");
