Explorar o código

fix format in macro

Evan Almloff %!s(int64=2) %!d(string=hai) anos
pai
achega
74ace3f978
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,)*
                     }