mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Migrate mime_classifier top-level string to enum.
This commit is contained in:
parent
9d3fc76463
commit
66303e40b5
3 changed files with 89 additions and 84 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue