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.
2 parents 56e7e87 + 3910c82 commit cbee7baCopy full SHA for cbee7ba
drivers/android/process.rs
@@ -186,10 +186,9 @@ impl ProcessInner {
186
strong: bool,
187
thread: Option<&Thread>,
188
) -> Result<Option<NodeRef>> {
189
- Ok(match self.get_existing_node(ptr, cookie)? {
190
- None => None,
191
- Some(node) => Some(self.new_node_ref(node, strong, thread)),
192
- })
+ Ok(self
+ .get_existing_node(ptr, cookie)?
+ .map(|node| self.new_node_ref(node, strong, thread)))
193
}
194
195
fn register_thread(&mut self) -> bool {
0 commit comments