Fix clippy::manual_map
lint violations (#36584)
#36577 Release Notes: - N/A
This commit is contained in:
parent
de12633591
commit
bc79076ad3
18 changed files with 62 additions and 118 deletions
|
@ -4732,14 +4732,12 @@ impl Workspace {
|
|||
})
|
||||
});
|
||||
|
||||
if let Some(view) = view {
|
||||
Some(entry.insert(FollowerView {
|
||||
view.map(|view| {
|
||||
entry.insert(FollowerView {
|
||||
view,
|
||||
location: None,
|
||||
}))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue