formatting

This commit is contained in:
ascendforever 2024-10-13 18:22:29 -04:00
parent 39b56c390f
commit 1a1f199ad1

View file

@ -81,11 +81,7 @@ impl<'a> Registry<'a> {
}
pub fn write_all(&self, writer: &mut impl Write, separator_null: bool, quote: bool) -> std::io::Result<()> {
let sep = if separator_null {
'\0'
} else {
'\n'
};
let sep = if separator_null { '\0' } else { '\n' };
if quote { for (_,file) in &self.registry {
writer.write_all(&shlex::bytes::try_quote(&file.as_os_str().as_bytes()).unwrap())?;
} }