]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/if_let_some_result.stderr
iterate List by value
[rust.git] / tests / ui / if_let_some_result.stderr
index b4adc526efa6c07ec3d7342cdfc9cfa63c5b7796..334ccb0101678c6c05cbb0c7418c75c8a17489b2 100644 (file)
@@ -13,8 +13,8 @@ LL |     if let Ok(y) = x.parse() {
 error: Matching on `Some` with `ok()` is redundant
   --> $DIR/if_let_some_result.rs:24:9
    |
-LL |         if let Some(y) = x   .   parse()   .   ok()    {
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL |         if let Some(y) = x   .   parse()   .   ok   ()    {
+   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 help: Consider matching on `Ok(y)` and removing the call to `ok` instead
    |