Browse Source

fix format in macro

Evan Almloff 2 years ago
parent
commit
74ace3f978
1 changed files with 1 additions and 1 deletions
  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,)*
                     }