Skip to content

Commit 533a532

Browse files
committed
thanks clippy
1 parent 6829e5e commit 533a532

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

git-pack/src/index/traverse/indexed.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl index::File {
4141
let pack_progress = progress.add_child("SHA1 of pack");
4242
let index_progress = progress.add_child("SHA1 of index");
4343
move || {
44-
let res = self.possibly_verify(pack, check, pack_progress, index_progress, &should_interrupt);
44+
let res = self.possibly_verify(pack, check, pack_progress, index_progress, should_interrupt);
4545
if res.is_err() {
4646
should_interrupt.store(true, Ordering::SeqCst);
4747
}
@@ -56,7 +56,7 @@ impl index::File {
5656
|e| e.index_entry.pack_offset,
5757
pack.path(),
5858
progress.add_child("indexing"),
59-
&should_interrupt,
59+
should_interrupt,
6060
|id| self.lookup(id).map(|idx| self.pack_offset_at_index(idx)),
6161
self.object_hash,
6262
)?;
@@ -67,7 +67,7 @@ impl index::File {
6767
progress.add_child("Resolving"),
6868
progress.add_child("Decoding"),
6969
thread_limit,
70-
&should_interrupt,
70+
should_interrupt,
7171
pack.pack_end() as u64,
7272
new_processor,
7373
|data,

git-pack/src/index/traverse/with_lookup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl index::File {
133133
}
134134
Ok(stats)
135135
},
136-
Reducer::from_progress(reduce_progress, pack.data_len(), check, &should_interrupt),
136+
Reducer::from_progress(reduce_progress, pack.data_len(), check, should_interrupt),
137137
)
138138
},
139139
);

gitoxide-core/src/pack/verify.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ where
131131
let pack = odb::pack::data::File::at(path, object_hash).with_context(|| "Could not open pack file")?;
132132
pack.verify_checksum(
133133
progress::DoOrDiscard::from(progress).add_child("Sha1 of pack"),
134-
&should_interrupt,
134+
should_interrupt,
135135
)
136136
.map(|id| (id, None))?
137137
}
@@ -174,7 +174,7 @@ where
174174
}),
175175
thread_limit,
176176
progress,
177-
&should_interrupt,
177+
should_interrupt,
178178
)
179179
.map(|o| (o.actual_index_checksum, o.pack_traverse_outcome))
180180
.with_context(|| "Verification failure")?

0 commit comments

Comments
 (0)