diff --git a/fuzz/fuzz_targets/fuzz_write.rs b/fuzz/fuzz_targets/fuzz_write.rs index ce9f213c..d0c3aa65 100644 --- a/fuzz/fuzz_targets/fuzz_write.rs +++ b/fuzz/fuzz_targets/fuzz_write.rs @@ -33,10 +33,9 @@ pub struct FileOperation { impl FileOperation { fn referenceable_name(&self) -> String { - if let BasicFileOperation::WriteDirectory(_) = self.basic { - if !self.name.ends_with('\\') && !self.name.ends_with('/') { - return self.name.to_owned() + "/"; - } + if let BasicFileOperation::WriteDirectory(_) = self.basic + && !self.name.ends_with('\\') && !self.name.ends_with('/') { + return self.name.to_owned() + "/"; } else { self.name.to_owned() }