mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-17 00:50:16 +00:00
Use bitshift consistently for bitflag definitions (#14265)
This commit is contained in:
parent
1c586b29e2
commit
84d4f114ef
8 changed files with 33 additions and 34 deletions
|
@ -609,10 +609,10 @@ pub enum BindingKind<'a> {
|
|||
bitflags! {
|
||||
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
|
||||
pub struct Exceptions: u8 {
|
||||
const NAME_ERROR = 0b0000_0001;
|
||||
const MODULE_NOT_FOUND_ERROR = 0b0000_0010;
|
||||
const IMPORT_ERROR = 0b0000_0100;
|
||||
const ATTRIBUTE_ERROR = 0b000_100;
|
||||
const NAME_ERROR = 1 << 0;
|
||||
const MODULE_NOT_FOUND_ERROR = 1 << 1;
|
||||
const IMPORT_ERROR = 1 << 2;
|
||||
const ATTRIBUTE_ERROR = 1 << 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue