mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Cleanup convert_path
This commit is contained in:
parent
880baa9e56
commit
d8ef6c24cc
4 changed files with 34 additions and 42 deletions
|
@ -131,7 +131,7 @@ impl CfgDiff {
|
|||
/// of both.
|
||||
pub fn new(enable: Vec<CfgAtom>, disable: Vec<CfgAtom>) -> Option<CfgDiff> {
|
||||
let mut occupied = FxHashSet::default();
|
||||
if enable.iter().chain(disable.iter()).any(|item| occupied.insert(item)) {
|
||||
if enable.iter().chain(disable.iter()).any(|item| !occupied.insert(item)) {
|
||||
// was present
|
||||
return None;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue