File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ impl<'a> SummaryParser<'a> {
248
248
249
249
let mut files = HashSet :: new ( ) ;
250
250
for part in [ & prefix_chapters, & numbered_chapters, & suffix_chapters] {
251
- self . check_for_duplicates ( & part, & mut files) ?;
251
+ Self :: check_for_duplicates ( & part, & mut files) ?;
252
252
}
253
253
254
254
Ok ( Summary {
@@ -261,7 +261,6 @@ impl<'a> SummaryParser<'a> {
261
261
262
262
/// Recursively check for duplicate files in the summary items.
263
263
fn check_for_duplicates < ' b > (
264
- & self ,
265
264
items : & ' b [ SummaryItem ] ,
266
265
files : & mut HashSet < & ' b PathBuf > ,
267
266
) -> Result < ( ) > {
@@ -276,7 +275,7 @@ impl<'a> SummaryParser<'a> {
276
275
}
277
276
}
278
277
// Recursively check nested items
279
- self . check_for_duplicates ( & link. nested_items , files) ?;
278
+ Self :: check_for_duplicates ( & link. nested_items , files) ?;
280
279
}
281
280
}
282
281
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments