~savoy/mailcap

698305586e7ad21e5b59e3295fd7ae4bf82679da — savoy 2 years ago 6a856bf
additional derive traits for structs/enums

Signed-off-by: savoy <git@liberation.red>
1 files changed, 3 insertions(+), 3 deletions(-)

M src/lib.rs
M src/lib.rs => src/lib.rs +3 -3
@@ 22,20 22,20 @@ use std::io::{BufRead, BufReader};
use std::path::PathBuf;
use std::{env, fmt};

#[derive(Debug)]
#[derive(Debug, PartialEq)]
pub enum MailcapError {
    LineParseError,
    FileParseError,
    NoValidFiles,
}

#[derive(Debug, PartialEq)]
#[derive(Default, Debug, PartialEq, Clone)]
pub struct Mailcap {
    files: Vec<PathBuf>,
    data: HashMap<String, Entry>,
}

#[derive(Default, Debug, PartialEq)]
#[derive(Default, Debug, PartialEq, Clone)]
pub struct Entry {
    mime_type: String,
    viewer: String,