~matthiasbeyer/maildir

ee1f8fce3b3d0b22d057cb9fd75b8468b8f7082e — Kartikaya Gupta 1 year, 8 months ago 8847806
Run cargo fmt
1 files changed, 4 insertions(+), 1 deletions(-)

M src/lib.rs
M src/lib.rs => src/lib.rs +4 -1
@@ 391,7 391,10 @@ impl Maildir {
    pub fn delete(&self, id: &str) -> std::io::Result<()> {
        match self.find(id) {
            Some(m) => fs::remove_file(m.path()),
            None => Err(std::io::Error::new(std::io::ErrorKind::NotFound, "Mail entry not found")),
            None => Err(std::io::Error::new(
                std::io::ErrorKind::NotFound,
                "Mail entry not found",
            )),
        }
    }