mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
bind_instead_of_map
This commit is contained in:
parent
2a239b9833
commit
3409645c3f
2 changed files with 1 additions and 2 deletions
|
@ -4300,7 +4300,7 @@ impl Type {
|
|||
) -> impl Iterator<Item = SmolStr> + 'a {
|
||||
// iterate the lifetime
|
||||
self.as_adt()
|
||||
.and_then(|a| a.lifetime(db).and_then(|lt| Some((<.name).to_smol_str())))
|
||||
.and_then(|a| a.lifetime(db).map(|lt| (<.name).to_smol_str()))
|
||||
.into_iter()
|
||||
// add the type and const parameters
|
||||
.chain(self.type_and_const_arguments(db))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue