Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Feb 23, 2024
1 parent e56d93e commit a1da774
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slinky/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ impl Document {
for segment in &mut document.segments {
segment
.use_subalign
.get_or_insert_with(|| document.settings.use_subalign);
.get_or_insert(document.settings.use_subalign);
segment
.subalign
.get_or_insert_with(|| document.settings.subalign);
.get_or_insert(document.settings.subalign);

segment
.wildcard_sections
.get_or_insert_with(|| document.settings.wildcard_sections);
.get_or_insert(document.settings.wildcard_sections);
}

Ok(document)
Expand Down

0 comments on commit a1da774

Please sign in to comment.