浏览代码

fix clippy

Evan Almloff 1 年之前
父节点
当前提交
1ddda0cc17
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
             });