diff --git a/viz-core/tests/type_json.rs b/viz-core/tests/type_json.rs index a266e77c..f31c2301 100644 --- a/viz-core/tests/type_json.rs +++ b/viz-core/tests/type_json.rs @@ -1,4 +1,4 @@ -use viz_core::{types::Json, IntoResponse, ResponseExt, Result}; +use viz_core::{types::Json, IntoResponse, ResponseExt}; #[test] fn json() { diff --git a/viz-core/tests/type_realip.rs b/viz-core/tests/type_realip.rs index 0b3906be..06b69f22 100644 --- a/viz-core/tests/type_realip.rs +++ b/viz-core/tests/type_realip.rs @@ -1,11 +1,11 @@ use viz_core::{ header::{HeaderValue, FORWARDED}, types::RealIp, - Request, RequestExt, Result, + Request, RequestExt, }; #[test] -fn realip() -> Result<()> { +fn realip() { let mut req = Request::default(); req.headers_mut() .insert(RealIp::X_REAL_IP, HeaderValue::from_static("10.10.10.10")); @@ -30,6 +30,4 @@ fn realip() -> Result<()> { req.extensions_mut() .insert("1.1.1.1:80".parse::().unwrap()); assert_eq!(req.realip(), Some(RealIp("1.1.1.1".parse().unwrap()))); - - Ok(()) }