Skip to content

Commit

Permalink
fix ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jan 16, 2025
1 parent 6ccecd0 commit b90c9e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions src/read/pipelining.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Pipelined extraction into a filesystem directory.
#![allow(clippy::needless_lifetimes)]
#![allow(non_local_definitions)]

Check failure on line 4 in src/read/pipelining.rs

View workflow job for this annotation

GitHub Actions / Build and test --all-features: ubuntu-latest, msrv

unknown lint: `non_local_definitions`

Check failure on line 4 in src/read/pipelining.rs

View workflow job for this annotation

GitHub Actions / Build and test --all-features: macOS-latest, msrv

unknown lint: `non_local_definitions`
#![cfg_attr(not(unix), allow(dead_code))]

pub mod path_splitting {
Expand Down Expand Up @@ -221,14 +223,14 @@ pub mod path_splitting {
);
}

#[test]
fn lex_trie() {
impl DirByMode for usize {
fn is_dir_by_mode(&self) -> bool {
false
}
impl DirByMode for usize {
fn is_dir_by_mode(&self) -> bool {
false
}
}

#[test]
fn lex_trie() {
assert_eq!(
lexicographic_entry_trie([
("a/b/", 1usize),
Expand Down
4 changes: 2 additions & 2 deletions src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,10 @@ impl FileOptions<'_, ExtendedFileOptions> {
/// Removes the extra data fields.
#[must_use]
pub fn clear_extra_data(mut self) -> Self {
if self.extended_options.extra_data.len() > 0 {
if !self.extended_options.extra_data.is_empty() {
self.extended_options.extra_data = Arc::new(vec![]);
}
if self.extended_options.central_extra_data.len() > 0 {
if !self.extended_options.central_extra_data.is_empty() {
self.extended_options.central_extra_data = Arc::new(vec![]);
}
self
Expand Down

0 comments on commit b90c9e2

Please sign in to comment.