File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ impl<'a> Cursor<'a> {
67
67
}
68
68
}
69
69
70
- impl < ' a > Display for Cursor < ' a > {
70
+ impl Display for Cursor < ' _ > {
71
71
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
72
72
let len = self . input . len ( ) . to_string ( ) ;
73
73
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ impl<'a> Extractor<'a> {
204
204
}
205
205
206
206
#[ inline( always) ]
207
- fn split_candidate ( candidate : & ' a [ u8 ] ) -> SplitCandidate {
207
+ fn split_candidate ( candidate : & ' a [ u8 ] ) -> SplitCandidate < ' a > {
208
208
let mut brackets = 0 ;
209
209
let mut idx_end = 0 ;
210
210
Original file line number Diff line number Diff line change @@ -95,13 +95,8 @@ impl DetectSources {
95
95
)
96
96
. into_iter ( ) ;
97
97
98
- loop {
99
- // We are only interested in valid entries
100
- let entry = match it. next ( ) {
101
- Some ( Ok ( entry) ) => entry,
102
- _ => break ,
103
- } ;
104
-
98
+ // We are only interested in valid entries
99
+ while let Some ( Ok ( entry) ) = it. next ( ) {
105
100
// Ignore known directories that we don't want to traverse into.
106
101
if entry. file_type ( ) . is_dir ( ) && entry. file_name ( ) == ".git" {
107
102
it. skip_current_dir ( ) ;
You can’t perform that action at this time.
0 commit comments