Browse Source

fix clippy

Evan Almloff 1 year ago
parent
commit
1ddda0cc17
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/router/src/routable.rs

+ 1 - 1
packages/router/src/routable.rs

@@ -181,7 +181,7 @@ pub trait Routable: std::fmt::Display + std::str::FromStr + Clone + 'static {
         let new_route = segments
             .take(segment_count - 1)
             .fold(String::new(), |mut acc, segment| {
-                acc.push_str("/");
+                acc.push('/');
                 acc.push_str(segment);
                 acc
             });