Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Feb 22, 2025
1 parent 2efce72 commit 9a821ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gix-index/src/entry/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bitflags! {
/// The mask to obtain the length of the path associated with this entry, up to 4095 characters without extension.
const PATH_LEN = 0x0fff;
/// The mask to apply to obtain the stage number of an entry, encoding three value: 0 = base, 1 = ours, 2 = theirs.
const STAGE_MASK = 1<<12 | 1<<13;
const STAGE_MASK = (1<<12) | (1<<13);
/// If set, additional bits need to be written to storage.
const EXTENDED = 1<<14;
/// If set, the entry be assumed to match with the version on the working tree, as a way to avoid `lstat()` checks.
Expand Down
2 changes: 1 addition & 1 deletion gix-odb/src/store_impls/dynamic/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl PackId {
midx <= Self::max_packs_in_multi_index(),
"There shouldn't be more than 2^16 packs per multi-index"
);
((self.index as gix_pack::data::Id | 1 << 15) | midx << 16) as gix_pack::data::Id
(self.index as gix_pack::data::Id | 1 << 15) | (midx << 16) as gix_pack::data::Id
}
}
}
Expand Down

0 comments on commit 9a821ae

Please sign in to comment.