mirror of
https://github.com/servo/servo.git
synced 2025-06-21 23:59:00 +01:00
Issue #7382 Use descriptive enums instead of booleans for MIMEClassifier::classifer Hi guys i've done a small pass of refactor in the MIMEClassifier implementation. (See issue #7382 ) - Moved the predicates to separate functions - Added a mimetype enum so we can compare them easily after calling MIMEClassifier::get_media_type I hope it follows rust good pratices (care it's my first time doing rust). Improvements and tips are welcome :). Thanks for looking at it. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7447) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
fetch | ||
about_loader.rs | ||
Cargo.toml | ||
cookie.rs | ||
cookie_storage.rs | ||
data_loader.rs | ||
file_loader.rs | ||
hsts.rs | ||
http_loader.rs | ||
image_cache_task.rs | ||
lib.rs | ||
mime_classifier.rs | ||
pub_domains.rs | ||
resource_task.rs | ||
storage_task.rs |