Unnecessary braces not warned against

let tmp = PathBuf::from(paths_from[0]);
let file_name = (tmp).file_name();//No lint here

Check github if there is an issue for this, if not file an issue

Which repo?

1 Like

Thanks