File tree 3 files changed +4
-4
lines changed
git-odb/src/pack/index/traverse 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ pub struct ResetInterruptOnDrop {
74
74
was_interrupted : bool ,
75
75
}
76
76
77
- impl ResetInterruptOnDrop {
78
- pub fn new ( ) -> Self {
77
+ impl Default for ResetInterruptOnDrop {
78
+ fn default ( ) -> Self {
79
79
ResetInterruptOnDrop {
80
80
was_interrupted : is_interrupted ( ) ,
81
81
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ impl index::File {
28
28
) -> Result < ( ) , E > ,
29
29
E : std:: error:: Error + Send + Sync + ' static ,
30
30
{
31
- let _reset_interrupt = ResetInterruptOnDrop :: new ( ) ;
31
+ let _reset_interrupt = ResetInterruptOnDrop :: default ( ) ;
32
32
let ( verify_result, traversal_result) = parallel:: join (
33
33
{
34
34
let pack_progress = root. add_child ( "SHA1 of pack" ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ impl index::File {
31
31
& mut <<P as Progress >:: SubProgress as Progress >:: SubProgress ,
32
32
) -> Result < ( ) , E > ,
33
33
{
34
- let _reset_interrupt = ResetInterruptOnDrop :: new ( ) ;
34
+ let _reset_interrupt = ResetInterruptOnDrop :: default ( ) ;
35
35
let ( verify_result, traversal_result) = parallel:: join (
36
36
{
37
37
let pack_progress = root. add_child ( "SHA1 of pack" ) ;
You can’t perform that action at this time.
0 commit comments