Migrate mime_classifier top-level string to enum.

This commit is contained in:
Corey Farwell 2016-07-02 16:42:29 -04:00
parent 9d3fc76463
commit 66303e40b5
3 changed files with 89 additions and 84 deletions

View file

@ -75,6 +75,7 @@ fn test_sniff_with_flags(filename_orig: &path::Path,
match read_result {
Ok(data) => {
let supplied_type = supplied_type.map(|(x, y)| (x.parse().unwrap(), y));
let (parsed_type, parsed_subtp) = classifier.classify(LoadContext::Browsing,
no_sniff_flag,
apache_bug_flag,