Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ealmloff committed Sep 2, 2023
1 parent 1d1651b commit 87fd239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/router/src/routable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ where
type Err = <T as FromStr>::Err;

fn from_route_segment(route: &str) -> Result<Self, Self::Err> {
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)
Expand Down

0 comments on commit 87fd239

Please sign in to comment.