Skip to content

Commit

Permalink
index: make ReadonlyIndexImpl private
Browse files Browse the repository at this point in the history
There are no external callers.
  • Loading branch information
yuja committed Dec 8, 2023
1 parent 193862c commit 6c51e56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/default_index_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ pub enum IndexLoadError {
// TODO: replace the table by a trie so we don't have to repeat the full commit
// ids
// TODO: add a fanout table like git's commit graph has?
pub(crate) struct ReadonlyIndexImpl {
struct ReadonlyIndexImpl {
parent_file: Option<Arc<ReadonlyIndexImpl>>,
num_parent_commits: u32,
name: String,
Expand Down Expand Up @@ -447,7 +447,7 @@ impl MutableIndexImpl {
}
}

pub(crate) fn incremental(parent_file: Arc<ReadonlyIndexImpl>) -> Self {
fn incremental(parent_file: Arc<ReadonlyIndexImpl>) -> Self {
let num_parent_commits = parent_file.num_parent_commits + parent_file.num_local_commits;
let commit_id_length = parent_file.commit_id_length;
let change_id_length = parent_file.change_id_length;
Expand Down Expand Up @@ -1877,7 +1877,7 @@ impl ReadonlyIndexImpl {
}))
}

pub fn as_composite(&self) -> CompositeIndex {
fn as_composite(&self) -> CompositeIndex {
CompositeIndex(self)
}

Expand Down

0 comments on commit 6c51e56

Please sign in to comment.