Fix clippy::trivially-copy-pass-by-ref

This commit is contained in:
Héctor Ramón Jiménez 2023-09-20 04:33:48 +02:00
parent 34f07b6027
commit 6c386e90a1
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 48 additions and 55 deletions

View file

@ -443,7 +443,7 @@ pub enum Filter {
}
impl Filter {
fn matches(&self, task: &Task) -> bool {
fn matches(self, task: &Task) -> bool {
match self {
Filter::All => true,
Filter::Active => !task.completed,