ruff/crates/ruff_cli
Charlie Marsh 057faabcdd
Use Flags::intersects rather than Flags::contains (#6007)
## Summary

This is equivalent for a single flag, but I think it's more likely to be
correct when the bitflags are modified -- the primary reason being that
we sometimes define flags as the union of other flags, e.g.:

```rust
const ANNOTATION = Self::TYPING_ONLY_ANNOTATION.bits() | Self::RUNTIME_ANNOTATION.bits();
```

In this case, `flags.contains(Flag::ANNOTATION)` requires that _both_
flags in the union are set, whereas `flags.intersects(Flag::ANNOTATION)`
requires that _at least one_ flag is set.
2023-07-23 02:59:31 +00:00
..
resources/test/fixtures Keep track of when files are last seen in the cache (#5214) 2023-06-23 15:40:35 +02:00
src Use Flags::intersects rather than Flags::contains (#6007) 2023-07-23 02:59:31 +00:00
tests Handle io errors gracefully (#5611) 2023-07-20 11:30:14 +02:00
Cargo.toml Bump version to 0.0.280 (#5965) 2023-07-21 22:36:13 -04:00