Skip to content

Commit

Permalink
style: Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed Feb 25, 2025
1 parent 30ec0b7 commit 1e6352b
Showing 1 changed file with 2 additions and 2 deletions.
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 1e6352b

Please sign in to comment.