Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Sep 2, 2023
1 parent 529476d commit 4f8740a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions huff_utils/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ impl AstSpan {
pub fn error(&self, hint: Option<&String>) -> String {
let file_to_source_map =
self.0.iter().fold(BTreeMap::<String, Vec<&Span>>::new(), |mut m, s| {
let file_name =
s.file.as_ref().map(|f2| f2.path.clone()).unwrap_or_default();
let file_name = s.file.as_ref().map(|f2| f2.path.clone()).unwrap_or_default();
let mut new_vec: Vec<&Span> = m.get(&file_name).cloned().unwrap_or_default();
new_vec.push(s);
m.insert(file_name, new_vec);
Expand Down

0 comments on commit 4f8740a

Please # to comment.