Skip to content

Commit

Permalink
test(fuzz): Fix a build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed Jun 15, 2024
1 parent 052f3a1 commit 1b7c09e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fuzz/fuzz_targets/fuzz_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ impl <'k> Debug for FileOperation<'k> {
BasicFileOperation::WriteDirectory(options) => {
f.write_fmt(format_args!("let options = {:?};\n\
writer.add_directory_from_path({:?}, options)?;\n",
options, self.path))
options, self.path))?;
},
BasicFileOperation::WriteSymlinkWithTarget {target, options} => {
f.write_fmt(format_args!("let options = {:?};\n\
writer.add_symlink_from_path({:?}, {:?}, options)?;\n",
options, self.path, target.to_owned()))
options, self.path, target.to_owned()))?;
},
BasicFileOperation::ShallowCopy(base) => {
f.write_fmt(format_args!("{:?}writer.shallow_copy_file_from_path({:?}, {:?})?;\n", base, base.path, self.path))
f.write_fmt(format_args!("{:?}writer.shallow_copy_file_from_path({:?}, {:?})?;\n", base, base.path, self.path))?;
},
BasicFileOperation::DeepCopy(base) => {
f.write_fmt(format_args!("{:?}writer.deep_copy_file_from_path({:?}, {:?})?;\n", base, base.path, self.path))
f.write_fmt(format_args!("{:?}writer.deep_copy_file_from_path({:?}, {:?})?;\n", base, base.path, self.path))?;
},
BasicFileOperation::MergeWithOtherFile {operations} => {
f.write_str("let sub_writer = {\n\
Expand All @@ -82,7 +82,7 @@ impl <'k> Debug for FileOperation<'k> {
}).collect::<Result<(), _>>()?;
f.write_str("writer\n\
};\n\
writer.merge_archive(sub_writer.finish_into_readable()?)?;\n")
writer.merge_archive(sub_writer.finish_into_readable()?)?;\n")?;
},
}?;
match &self.reopen {
Expand Down

0 comments on commit 1b7c09e

Please sign in to comment.