History

refactor

Sebastian Thiel committed 6 years ago

Commit bbb3e1e1 parent 1e879222 files · +4 −4Browse files

Unified · Split

2 files
  1. git-odb/src/pack/index/traverse/indexed.rs +2 −2
  2. git-odb/src/pack/index/traverse/lookup.rs +2 −2
git-odb/src/pack/index/traverse/indexed.rs+2−2
@@ -6,7 +6,7 @@ use crate::{ · 5 unmodified lines
6};6};
7use git_features::{7use git_features::{
8 parallel::{self, in_parallel_if},8 parallel::{self, in_parallel_if},
9 progress::{self, Progress},9 progress::Progress,
10};10};
11use git_object::Kind;11use git_object::Kind;
12use std::collections::BTreeMap;12use std::collections::BTreeMap;
@@ -16,7 +16,7 @@ impl index::File { · 3 unmodified lines
16 &self,16 &self,
17 thread_limit: Option<usize>,17 thread_limit: Option<usize>,
18 new_processor: impl Fn() -> Processor + Send + Sync,18 new_processor: impl Fn() -> Processor + Send + Sync,
19 mut root: progress::DoOrDiscard<P>,19 mut root: P,
20 pack: &pack::data::File,20 pack: &pack::data::File,
21 ) -> Result<index::verify::Outcome, Error>21 ) -> Result<index::verify::Outcome, Error>
22 where22 where
git-odb/src/pack/index/traverse/lookup.rs+2−2
@@ -2,7 +2,7 @@ use super::{Error, Reducer}; · 1 unmodified line
2use crate::pack::{self, data::decode, index, index::util};2use crate::pack::{self, data::decode, index, index::util};
3use git_features::{3use git_features::{
4 parallel::{self, in_parallel_if},4 parallel::{self, in_parallel_if},
5 progress::{self, Progress},5 progress::Progress,
6};6};
7 7
8/// Verify and validate the content of the index file8/// Verify and validate the content of the index file
@@ -12,7 +12,7 @@ impl index::File { · 3 unmodified lines
12 thread_limit: Option<usize>,12 thread_limit: Option<usize>,
13 new_processor: impl Fn() -> Processor + Send + Sync,13 new_processor: impl Fn() -> Processor + Send + Sync,
14 make_cache: impl Fn() -> C + Send + Sync,14 make_cache: impl Fn() -> C + Send + Sync,
15 mut root: progress::DoOrDiscard<P>,15 mut root: P,
16 pack: &pack::data::File,16 pack: &pack::data::File,
17 ) -> Result<index::verify::Outcome, Error>17 ) -> Result<index::verify::Outcome, Error>
18 where18 where