make msrv 1.66
This commit is contained in:
1 file changed
+1
-1
@@ -236,7 +236,7 @@ pub(crate) fn create_error_type(
|
|||||||
match segment {
|
match segment {
|
||||||
RouteSegment::Static(index) => {
|
RouteSegment::Static(index) => {
|
||||||
error_variants.push(quote! { #error_name(String) });
|
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) => {
|
RouteSegment::Dynamic(ident, ty) => {
|
||||||
let missing_error = segment.missing_error_name().unwrap();
|
let missing_error = segment.missing_error_name().unwrap();
|
||||||
|
|||||||
Reference in new issue
Block a user