浏览代码

make msrv 1.66

Jonathan Kelley 1 年之前
父节点
当前提交
9d942f1162
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/router-macro/src/segment.rs

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

@@ -236,7 +236,7 @@ pub(crate) fn create_error_type(
         match segment {
             RouteSegment::Static(index) => {
                 error_variants.push(quote! { #error_name(String) });
-                display_match.push(quote! { Self::#error_name(found) => write!(f, "Static segment '{}' did not match instead found '{found}'", #index)? });
+                display_match.push(quote! { Self::#error_name(found) => write!(f, "Static segment '{}' did not match instead found '{}'", #index, found)? });
             }
             RouteSegment::Dynamic(ident, ty) => {
                 let missing_error = segment.missing_error_name().unwrap();