mc-repack 0.12.1

A repacking tool for Minecraft mods and resource packs to optimize size and loading speed.
Documentation
use std::{error::Error, fmt::Display};

/// This method checks if a file extension can be ignored (likely not used).
pub fn can_ignore_type(s: &str) -> bool {
    match s {
        "blend" | "blend1" | "psd" => true,
        _ => false
    }
}

/// An error struct informing that processed file is blacklisted.
#[derive(Debug)]
pub struct BlacklistedFile;

impl Error for BlacklistedFile {}
impl Display for BlacklistedFile {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "Blacklisted")
    }
}