You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnmain(){}fn_z(a:&std::path::Path) -> std::io::Result<()>{for _ in std::fs::read_dir(a)? {}Ok(())}
clippy:
warning: identical conversion
--> src/main.rs:4:14
|
4 | for _ in std::fs::read_dir(a)? {}
| ^^^^^^^^^^^^^^^^^^^^^ help: consider removing `std::fs::read_dir(a)?()`: `std::fs::read_dir(a)?`
|
= note: #[warn(clippy::identity_conversion)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion
removing ? and using unwrap for example make the lint warning disappear as it should
The text was updated successfully, but these errors were encountered:
Hi,
clippy 0.0.212 (265318d 2019-05-17)
code:
clippy:
removing
?
and usingunwrap
for example make the lint warning disappear as it shouldThe text was updated successfully, but these errors were encountered: