diff --git a/Cargo.toml b/Cargo.toml index 521947e3..1b78ed3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,6 @@ license = "MIT" description = "Strongly Typed Mimes" documentation = "http://hyperium.github.io/mime.rs" repository = "https://github.com/hyperium/mime.rs" + +[dependencies] +log = "*" diff --git a/src/lib.rs b/src/lib.rs index fd6b7f99..dd8c41d7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,10 +55,10 @@ macro_rules! inspect( /// This improves things so you use match without Strings: /// /// ```rust -/// use std::str::from_str; +/// use std::str::FromStr; /// use mime::{Mime, TopLevel, SubLevel}; /// -/// let mime: mime::Mime = from_str("application/json").unwrap(); +/// let mime: mime::Mime = FromStr::from_str("application/json").unwrap(); /// /// match mime { /// Mime(TopLevel::Application, SubLevel::Json, _) => println!("matched json!"),