diff options
| author | 2023-09-20 04:33:48 +0200 | |
|---|---|---|
| committer | 2023-09-20 04:33:48 +0200 | |
| commit | 6c386e90a12fd26da12541da3f086dddb7211c0c (patch) | |
| tree | 9f1fd02a8814b80320bbd4b4df85fb8c7cb65ff9 /examples/todos | |
| parent | 34f07b60273d6cfe13834af54cd0e24d34569387 (diff) | |
| download | iced-6c386e90a12fd26da12541da3f086dddb7211c0c.tar.gz iced-6c386e90a12fd26da12541da3f086dddb7211c0c.tar.bz2 iced-6c386e90a12fd26da12541da3f086dddb7211c0c.zip | |
Fix `clippy::trivially-copy-pass-by-ref`
Diffstat (limited to 'examples/todos')
| -rw-r--r-- | examples/todos/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 3048a668..1ad3aba7 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -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, |
