mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Fix clippy::option_map_or_none
This commit is contained in:
@@ -406,7 +406,7 @@ fn resolve_path_fp_with_macro(
|
||||
};
|
||||
|
||||
for (i, segment) in segments {
|
||||
let curr = match curr_per_ns.as_ref().left().map_or(None, |m| m.as_ref().take_types()) {
|
||||
let curr = match curr_per_ns.as_ref().left().and_then(|m| m.as_ref().take_types()) {
|
||||
Some(r) => r,
|
||||
None => {
|
||||
// we still have path segments left, but the path so far
|
||||
|
||||
Reference in New Issue
Block a user