Skip to content

Commit

Permalink
use u8 for WalkFlags in the hopes that this can save memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Apr 9, 2024
1 parent 5dd3a8c commit 70c1ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gix-traverse/src/commit/topo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ bitflags! {
// NOTE: The names correspond to the names of the flags in revision.h
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub(super) struct WalkFlags: u32 {
pub(super) struct WalkFlags: u8 {
/// Commit has been seen
const Seen = 0b000001;
/// Commit has been processed by the Explore walk
Expand Down

0 comments on commit 70c1ca0

Please sign in to comment.