fix: address Clippy lints
This commit is contained in:
parent
7918e78d65
commit
2f72e3e496
|
@ -94,7 +94,7 @@ impl Match for Matcher {
|
|||
false
|
||||
}
|
||||
}
|
||||
Matcher::Exactly { content } => &string == content,
|
||||
Matcher::Exactly { content } => string == content,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ impl Act for Action {
|
|||
Action::Replace { from, to } => input.replace(from, to),
|
||||
Action::Prefix { prefix } => format!("{}{}", prefix, input),
|
||||
Action::Suffix { suffix } => format!("{}{}", input, suffix),
|
||||
Action::Set { content } => content.to_owned(),
|
||||
Action::Set { content } => content.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue