Skip to content

Commit 5a9d7c0

Browse files
committed
Update phf::map find_equiv -> get_equiv (fixes reem#16)
1 parent 096be5c commit 5a9d7c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct RawMediaType {
3232

3333
/// Get the rust-http MediaType associated with this extension.
3434
pub fn get_content_type(ext: &str) -> Option<MediaType> {
35-
MIMES.find_equiv(ext)
35+
MIMES.get_equiv(ext)
3636
.map(to_media_type)
3737
}
3838

0 commit comments

Comments
 (0)