- | ^^^^^^^^^^^
- | |
- | move occurs because `selection.1` has type `Result<String, String>`, which does not implement the `Copy` trait
- | help: consider borrowing the `Result`'s content: `selection.1.as_ref()`
+ | ^^^^^^^^^^^ move occurs because `selection.1` has type `Result<String, String>`, which does not implement the `Copy` trait
+ |
+help: consider borrowing the `Result`'s content
+ |
+LL | if selection.1.as_ref().unwrap().contains(selection.0) {
+ | ^^^^^^^^^