Skip to content

Commit 4fbe500

Browse files
committed
Merge pull request #9 from cyderize/patch-1
Add crates.io 'log' to dependencies
2 parents f25e588 + 2994b26 commit 4fbe500

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ license = "MIT"
77
description = "Strongly Typed Mimes"
88
documentation = "http://hyperium.github.io/mime.rs"
99
repository = "https://github.com/hyperium/mime.rs"
10+
11+
[dependencies]
12+
log = "*"

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ macro_rules! inspect(
5555
/// This improves things so you use match without Strings:
5656
///
5757
/// ```rust
58-
/// use std::str::from_str;
58+
/// use std::str::FromStr;
5959
/// use mime::{Mime, TopLevel, SubLevel};
6060
///
61-
/// let mime: mime::Mime = from_str("application/json").unwrap();
61+
/// let mime: mime::Mime = FromStr::from_str("application/json").unwrap();
6262
///
6363
/// match mime {
6464
/// Mime(TopLevel::Application, SubLevel::Json, _) => println!("matched json!"),

0 commit comments

Comments
 (0)