diff --git a/packages/router/src/routable.rs b/packages/router/src/routable.rs index 5b24bdbc82..c98d2e95bd 100644 --- a/packages/router/src/routable.rs +++ b/packages/router/src/routable.rs @@ -54,8 +54,8 @@ where type Err = ::Err; fn from_route_segment(route: &str) -> Result { - match urlencoding::decode(&route) { - Ok(segment) => T::from_str(&*segment), + match urlencoding::decode(route) { + Ok(segment) => T::from_str(&segment), Err(err) => { log::error!("Failed to decode url encoding: {}", err); T::from_str(route)