Skip to content

Commit 4606b89

Browse files
committed
use shifts in bitflags
1 parent 6b64965 commit 4606b89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/ty_python_semantic/src/types/function.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ bitflags! {
6161
/// [1]: https://docs.python.org/3/library/typing.html#typing.dataclass_transform
6262
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, salsa::Update)]
6363
pub struct DataclassTransformerParams: u8 {
64-
const EQ_DEFAULT = 0b0000_0001;
65-
const ORDER_DEFAULT = 0b0000_0010;
66-
const KW_ONLY_DEFAULT = 0b0000_0100;
67-
const FROZEN_DEFAULT = 0b0000_1000;
64+
const EQ_DEFAULT = 1 << 0;
65+
const ORDER_DEFAULT = 1 << 1;
66+
const KW_ONLY_DEFAULT = 1 << 2;
67+
const FROZEN_DEFAULT = 1 << 3;
6868
}
6969
}
7070

0 commit comments

Comments
 (0)