Skip to content

Commit 9a821ae

Browse files
committed
thanks clippy
1 parent 2efce72 commit 9a821ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gix-index/src/entry/flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ bitflags! {
1212
/// The mask to obtain the length of the path associated with this entry, up to 4095 characters without extension.
1313
const PATH_LEN = 0x0fff;
1414
/// The mask to apply to obtain the stage number of an entry, encoding three value: 0 = base, 1 = ours, 2 = theirs.
15-
const STAGE_MASK = 1<<12 | 1<<13;
15+
const STAGE_MASK = (1<<12) | (1<<13);
1616
/// If set, additional bits need to be written to storage.
1717
const EXTENDED = 1<<14;
1818
/// If set, the entry be assumed to match with the version on the working tree, as a way to avoid `lstat()` checks.

gix-odb/src/store_impls/dynamic/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl PackId {
6161
midx <= Self::max_packs_in_multi_index(),
6262
"There shouldn't be more than 2^16 packs per multi-index"
6363
);
64-
((self.index as gix_pack::data::Id | 1 << 15) | midx << 16) as gix_pack::data::Id
64+
(self.index as gix_pack::data::Id | 1 << 15) | (midx << 16) as gix_pack::data::Id
6565
}
6666
}
6767
}

0 commit comments

Comments
 (0)