summaryrefslogtreecommitdiffstats
path: root/vendor/mime_guess/examples/rev_map.rs
blob: f6f2fdeaf9aa643eb28d38ec051a5ea1b371dc8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate mime_guess;

fn main() {
    print_exts("video/*");
    print_exts("video/x-matroska");
}

fn print_exts(mime_type: &str) {
    println!(
        "Exts for {:?}: {:?}",
        mime_type,
        mime_guess::get_mime_extensions_str(mime_type)
    );
}