mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
clippy::complexity simplifications related to Iterators
This commit is contained in:
parent
bd407a9882
commit
ae7e55c1dd
12 changed files with 64 additions and 80 deletions
|
@ -213,7 +213,7 @@ impl Crate {
|
|||
Some(TokenTree::Leaf(Leaf::Literal(Literal{ref text, ..}))) => Some(text),
|
||||
_ => None
|
||||
}
|
||||
}).flat_map(|t| t).next();
|
||||
}).flatten().next();
|
||||
|
||||
doc_url.map(|s| s.trim_matches('"').trim_end_matches('/').to_owned() + "/")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue