diff --git a/src/method.rs b/src/method.rs index b7b3b357..2c1ab2d6 100644 --- a/src/method.rs +++ b/src/method.rs @@ -463,11 +463,11 @@ mod test { } #[test] - fn test_extention_method() { + fn test_extension_method() { assert_eq!(Method::from_str("WOW").unwrap(), "WOW"); assert_eq!(Method::from_str("wOw!!").unwrap(), "wOw!!"); let long_method = "This_is_a_very_long_method.It_is_valid_but_unlikely."; - assert_eq!(Method::from_str(&long_method).unwrap(), long_method); + assert_eq!(Method::from_str(long_method).unwrap(), long_method); } } diff --git a/src/status.rs b/src/status.rs index d98d24c3..7f42014e 100644 --- a/src/status.rs +++ b/src/status.rs @@ -1,6 +1,6 @@ //! HTTP status codes //! -//! This module contains HTTP-status code related structs an errors. The main +//! This module contains HTTP-status code related structs and errors. The main //! type in this module is `StatusCode` which is not intended to be used through //! this module but rather the `http::StatusCode` type. //!