From ffdf1ffd48fa57b52e070fab269d89fad4c6c5dd Mon Sep 17 00:00:00 2001 From: Yuchao Zhang <418121364@qq.com> Date: Sat, 10 Sep 2022 21:55:12 +0800 Subject: [PATCH 1/2] Fix typo and lint error from clippy --- src/method.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } From f950b235a672af18cdc3f32ff99a2f29bf219974 Mon Sep 17 00:00:00 2001 From: Yuchao Zhang <418121364@qq.com> Date: Sat, 10 Sep 2022 22:56:22 +0800 Subject: [PATCH 2/2] Update status.rs --- src/status.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. //!