Skip to content

Commit fa18aa3

Browse files
fix ci error
1 parent 6ccecd0 commit fa18aa3

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

src/read/pipelining.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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

58
pub 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),

src/write.rs

Lines changed: 2 additions & 2 deletions
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)