Skip to content

Commit a853ee2

Browse files
committed
Use HashMap::default instead of HashMap::new when possible
1 parent b7e5eb5 commit a853ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ fn resolve_excluded_paths(cx: &Context) -> Vec<Utf8PathBuf> {
12801280
.iter()
12811281
.map(|id| cx.ws.metadata.packages[id].manifest_path.parent().unwrap());
12821282
let mut excluded_path = vec![];
1283-
let mut contains: HashMap<&Utf8Path, Vec<_>> = HashMap::new();
1283+
let mut contains: HashMap<&Utf8Path, Vec<_>> = HashMap::default();
12841284
for included in included {
12851285
for &excluded in excluded.iter().filter(|e| included.starts_with(e)) {
12861286
if let Some(v) = contains.get_mut(&excluded) {

0 commit comments

Comments
 (0)