fix: address Clippy lints

This commit is contained in:
Harsh Shandilya 2023-01-24 17:38:27 +00:00
parent 7918e78d65
commit 2f72e3e496
1 changed files with 2 additions and 2 deletions

View File

@ -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(),
}
}
}