Skip to content

Commit bcb06f8

Browse files
committed
nit: use let-chain in Cfg::simplify_with
1 parent 261823e commit bcb06f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustdoc/clean/cfg.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ impl Cfg {
241241
1 => sub_cfgs.pop(),
242242
_ => Some(Cfg::All(sub_cfgs)),
243243
};
244-
} else if let Cfg::All(b) = assume {
245-
if b.contains(self) {
246-
return None;
247-
}
244+
} else if let Cfg::All(b) = assume
245+
&& b.contains(self)
246+
{
247+
return None;
248248
}
249249

250250
Some(self.clone())

0 commit comments

Comments
 (0)