Skip to content

Commit

Permalink
Fix needless borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
geieredgar committed Jun 8, 2021
1 parent d703fbb commit f2a4b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webview/mimetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl MimeType {

/// infer mimetype from content (or) URI if needed.
pub fn parse(content: &[u8], uri: &str) -> String {
let mime = match infer::get(&content) {
let mime = match infer::get(content) {
Some(info) => info.mime_type(),
None => MIMETYPE_PLAIN,
};
Expand Down

0 comments on commit f2a4b38

Please sign in to comment.