File tree 2 files changed +10
-8
lines changed
2 files changed +10
-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( non_local_definitions) ]
3
5
#![ cfg_attr( not( unix) , allow( dead_code) ) ]
4
6
5
7
pub mod path_splitting {
@@ -221,14 +223,14 @@ pub mod path_splitting {
221
223
) ;
222
224
}
223
225
224
- #[ test]
225
- fn lex_trie ( ) {
226
- impl DirByMode for usize {
227
- fn is_dir_by_mode ( & self ) -> bool {
228
- false
229
- }
226
+ impl DirByMode for usize {
227
+ fn is_dir_by_mode ( & self ) -> bool {
228
+ false
230
229
}
230
+ }
231
231
232
+ #[ test]
233
+ fn lex_trie ( ) {
232
234
assert_eq ! (
233
235
lexicographic_entry_trie( [
234
236
( "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