Skip to content

Commit d07ce95

Browse files
committed
Use default Buramu map entries
Fixes the clippy::unwrap_or_default lint error reported by Clippy 1.98. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
1 parent 92e571e commit d07ce95

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ql/buramu/src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ fn get_files_with_deprecations() -> FileDeprecations {
3838
let mut file_deprecations: FileDeprecations = HashMap::new();
3939
for line in output.stdout.lines() {
4040
let (file, lineno) = get_filename_and_lineno(&line.unwrap());
41-
file_deprecations
42-
.entry(file)
43-
.or_insert_with(Vec::new)
44-
.push(lineno);
41+
file_deprecations.entry(file).or_default().push(lineno);
4542
}
4643
file_deprecations
4744
}

0 commit comments

Comments
 (0)