Skip to content

Commit

Permalink
Fixing clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Nov 6, 2023
1 parent 4a59326 commit 32d32de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ligen/traits/src/generator/file_generator/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl File {
self
.sections
.entry(name.as_ref().to_string())
.or_insert_with(Default::default)
.or_default()
}

/// Gets content.
Expand Down Expand Up @@ -99,7 +99,7 @@ impl FileSet {

/// Returns an existing File assigned to an entry or creates a new one if it isn't present.
pub fn entry(&mut self, path: &Path) -> &mut File {
self.files.entry(path.to_path_buf()).or_insert(File::new(path.to_path_buf()))
self.files.entry(path.to_path_buf()).or_insert(File::new(path))
}
}

Expand Down

0 comments on commit 32d32de

Please sign in to comment.