瀏覽代碼

fix format in macro

Evan Almloff 2 年之前
父節點
當前提交
74ace3f978
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/router-macro/src/route.rs

+ 1 - 1
packages/router-macro/src/route.rs

@@ -253,7 +253,7 @@ impl Route {
                 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
                     match self {
                         Self::ExtraSegments(segments) => {
-                            write!(f, "Found additional trailing segments: {segments}")?
+                            write!(f, "Found additional trailing segments: {}", segments)?
                         }
                         #(#display_match,)*
                     }