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.
filter_unnecessary_bounds
1 parent 57fda12 commit 2d09d69Copy full SHA for 2d09d69
crates/ide-assists/src/handlers/generate_function.rs
@@ -908,7 +908,7 @@ fn filter_unnecessary_bounds(
908
}
909
910
911
- let starting_nodes = necessary_params.iter().map(|param| param_map[param]);
+ let starting_nodes = necessary_params.iter().flat_map(|param| param_map.get(param).copied());
912
let reachable = graph.compute_reachable_nodes(starting_nodes);
913
914
// Not pretty, but effective. If only there were `Vec::retain_index()`...
0 commit comments