diff --git a/fuzz/fuzz_targets/fuzz_write.rs b/fuzz/fuzz_targets/fuzz_write.rs index d7670ec7..f3e3cb3c 100755 --- a/fuzz/fuzz_targets/fuzz_write.rs +++ b/fuzz/fuzz_targets/fuzz_write.rs @@ -47,7 +47,7 @@ impl <'k> Debug for FileOperation<'k> { f.write_fmt(format_args!("let options = {:?};\n\ writer.start_file_from_path({:?}, options)?;\n", options, self.path))?; for content_slice in contents { - f.write_fmt("writer.write_all(&({ : ? }[..] as [u8]))?;\n", content_slice)?; + f.write_fmt(format_args!("writer.write_all(&({:?}[..] as [u8]))?;\n", content_slice))?; } f.write_str("drop(options);\n") }, diff --git a/src/types.rs b/src/types.rs index db08cc55..acf07eb7 100644 --- a/src/types.rs +++ b/src/types.rs @@ -93,8 +93,10 @@ impl Debug for DateTime { if *self == Self::default() { return f.write_str("DateTime::default()"); } - f.write_fmt(format_args!("DateTime::from_date_and_time({}, {}, {}, {}, {}, {})?", - self.year, self.month, self.day, self.hour, self.minute, self.second)) + f.write_fmt(format_args!( + "DateTime::from_date_and_time({}, {}, {}, {}, {}, {})?", + self.year, self.month, self.day, self.hour, self.minute, self.second + )) } }