Skip to content

Commit b90c9e2

Browse files
fix ci error
1 parent 6ccecd0 commit b90c9e2

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/read/pipelining.rs

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! Pipelined extraction into a filesystem directory.
22
3+
#![allow(clippy::needless_lifetimes)]
4+
#![allow(non_local_definitions)]
35
#![cfg_attr(not(unix), allow(dead_code))]
46

57
pub mod path_splitting {
@@ -221,14 +223,14 @@ pub mod path_splitting {
221223
);
222224
}
223225

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
230229
}
230+
}
231231

232+
#[test]
233+
fn lex_trie() {
232234
assert_eq!(
233235
lexicographic_entry_trie([
234236
("a/b/", 1usize),

src/write.rs

+2-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)