From bddd6caeb2e076170848c0a77778fc60ccbff9e5 Mon Sep 17 00:00:00 2001 From: Lynnesbian Date: Thu, 23 Sep 2021 01:21:15 +1000 Subject: [PATCH] format --- src/formats.rs | 2 +- src/mime_db.rs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/formats.rs b/src/formats.rs index d73b80a..ba40680 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -122,7 +122,7 @@ pub fn smart_write(f: &mut W, writeables: &[Writable]) -> io::Result<( pub trait FormatSteps { fn rename(&self, _f: &mut W, _from: &Path, _to: &Path) -> io::Result<()>; - fn no_known_extension(&self, _f: &mut W, _path: &Path) -> io::Result<()> ; + fn no_known_extension(&self, _f: &mut W, _path: &Path) -> io::Result<()>; fn unreadable(&self, _f: &mut W, _path: &Path) -> io::Result<()>; fn unknown_type(&self, _f: &mut W, _path: &Path) -> io::Result<()>; fn header(&self, _f: &mut W, _entries: &Entries) -> io::Result<()>; diff --git a/src/mime_db.rs b/src/mime_db.rs index 01c4c8e..8497a70 100644 --- a/src/mime_db.rs +++ b/src/mime_db.rs @@ -47,14 +47,14 @@ cfg_if! { // as added by https://github.com/bojand/infer/pull/48/files // this should be removed when (if) that PR is accepted buf.len() > 11 - && buf[0] == 0x46 - && buf[1] == 0x4F - && buf[2] == 0x52 - && buf[3] == 0x4D - && buf[8] == 0x41 - && buf[9] == 0x49 - && buf[10] == 0x46 - && buf[11] == 0x46 + && buf[0] == 0x46 + && buf[1] == 0x4F + && buf[2] == 0x52 + && buf[3] == 0x4D + && buf[8] == 0x41 + && buf[9] == 0x49 + && buf[10] == 0x46 + && buf[11] == 0x46 }); info.add("image/svg+xml", "svg", |buf| {