File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 11//! Pipelined extraction into a filesystem directory.
22
3+ #![ allow( clippy:: needless_lifetimes) ]
4+ #![ allow( unknown_lints) ]
5+ #![ allow( non_local_definitions) ]
36#![ cfg_attr( not( unix) , allow( dead_code) ) ]
47
58pub mod path_splitting {
@@ -221,14 +224,14 @@ pub mod path_splitting {
221224 ) ;
222225 }
223226
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
230230 }
231+ }
231232
233+ #[ test]
234+ fn lex_trie ( ) {
232235 assert_eq ! (
233236 lexicographic_entry_trie( [
234237 ( "a/b/" , 1usize ) ,
Original file line number Diff line number Diff line change @@ -536,10 +536,10 @@ impl FileOptions<'_, ExtendedFileOptions> {
536536 /// Removes the extra data fields.
537537 #[ must_use]
538538 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 ( ) {
540540 self . extended_options . extra_data = Arc :: new ( vec ! [ ] ) ;
541541 }
542- if self . extended_options . central_extra_data . len ( ) > 0 {
542+ if ! self . extended_options . central_extra_data . is_empty ( ) {
543543 self . extended_options . central_extra_data = Arc :: new ( vec ! [ ] ) ;
544544 }
545545 self
You can’t perform that action at this time.
0 commit comments