File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
//! Pipelined extraction into a filesystem directory.
2
2
3
+ #![ allow( clippy:: needless_lifetimes) ]
4
+ #![ allow( unknown_lints) ]
5
+ #![ allow( non_local_definitions) ]
3
6
#![ cfg_attr( not( unix) , allow( dead_code) ) ]
4
7
5
8
pub mod path_splitting {
@@ -221,14 +224,14 @@ pub mod path_splitting {
221
224
) ;
222
225
}
223
226
224
- #[ test]
225
- fn lex_trie ( ) {
226
- impl DirByMode for usize {
227
- fn is_dir_by_mode ( & self ) -> bool {
228
- false
229
- }
227
+ impl DirByMode for usize {
228
+ fn is_dir_by_mode ( & self ) -> bool {
229
+ false
230
230
}
231
+ }
231
232
233
+ #[ test]
234
+ fn lex_trie ( ) {
232
235
assert_eq ! (
233
236
lexicographic_entry_trie( [
234
237
( "a/b/" , 1usize ) ,
Original file line number Diff line number Diff line change @@ -536,10 +536,10 @@ impl FileOptions<'_, ExtendedFileOptions> {
536
536
/// Removes the extra data fields.
537
537
#[ must_use]
538
538
pub fn clear_extra_data ( mut self ) -> Self {
539
- if self . extended_options . extra_data . len ( ) > 0 {
539
+ if ! self . extended_options . extra_data . is_empty ( ) {
540
540
self . extended_options . extra_data = Arc :: new ( vec ! [ ] ) ;
541
541
}
542
- if self . extended_options . central_extra_data . len ( ) > 0 {
542
+ if ! self . extended_options . central_extra_data . is_empty ( ) {
543
543
self . extended_options . central_extra_data = Arc :: new ( vec ! [ ] ) ;
544
544
}
545
545
self
You can’t perform that action at this time.
0 commit comments