We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30ec0b7 commit 1e6352bCopy full SHA for 1e6352b
src/write.rs
@@ -536,10 +536,10 @@ impl FileOptions<'_, ExtendedFileOptions> {
536
/// Removes the extra data fields.
537
#[must_use]
538
pub fn clear_extra_data(mut self) -> Self {
539
- if self.extended_options.extra_data.len() > 0 {
+ if !self.extended_options.extra_data.is_empty() {
540
self.extended_options.extra_data = Arc::new(vec![]);
541
}
542
- if self.extended_options.central_extra_data.len() > 0 {
+ if !self.extended_options.central_extra_data.is_empty() {
543
self.extended_options.central_extra_data = Arc::new(vec![]);
544
545
self
0 commit comments