We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Option::map
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
warning: manual implementation of `Option::map` --> drivers/android/process.rs:189:12 | 189 | Ok(match self.get_existing_node(ptr, cookie)? { | ____________^ 190 | | None => None, 191 | | Some(node) => Some(self.new_node_ref(node, strong, thread)), 192 | | }) | |_________^ help: try this: `self.get_existing_node(ptr, cookie)?.map(|node| self.new_node_ref(node, strong, thread))` | = note: `#[warn(clippy::manual_map)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
The text was updated successfully, but these errors were encountered:
Use Option::Map
0dbc84d
Fixes Rust-for-Linux#243 Signed-off-by: wcampbell <[email protected]>
51d0d59
Fixes Rust-for-Linux#243 Signed-off-by: Wayne Campbell <[email protected]>
a193593
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: