Skip to content

Commit

Permalink
map isn't needed here
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterScottYoung committed Nov 29, 2024
1 parent 79cbe89 commit fe2829f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/printer/src/standard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,6 @@ impl<'p, 's, M: Matcher, W: WriteColor> StandardSink<'p, 's, M, W> {
if self.standard.config.replacement.is_some() {
let replacement = (*self.standard.config.replacement)
.as_ref()
.map(|r| &*r)
.unwrap();
self.replacer.replace_all(
searcher,
Expand Down

0 comments on commit fe2829f

Please sign in to comment.