Fix clippy::trivially-copy-pass-by-ref
This commit is contained in:
parent
34f07b6027
commit
6c386e90a1
6 changed files with 48 additions and 55 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue