From 995906b1344ee14b97c939df9b71f8d334206928 Mon Sep 17 00:00:00 2001 From: Chrislearn Young Date: Tue, 10 Sep 2024 15:45:58 +0800 Subject: [PATCH] fix bug --- crates/oapi-macros/src/schema_type.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oapi-macros/src/schema_type.rs b/crates/oapi-macros/src/schema_type.rs index d3fb60bf7..a77ff647e 100644 --- a/crates/oapi-macros/src/schema_type.rs +++ b/crates/oapi-macros/src/schema_type.rs @@ -414,7 +414,7 @@ impl TryToTokens for Type<'_> { #[cfg(feature="non-strict-integers")] "u32" => tokens.extend(quote! { #oapi::oapi::SchemaFormat::KnownFormat(#oapi::oapi::KnownFormat::UInt32) }), #[cfg(feature="non-strict-integers")] - "u64" => tokens.extend(quote! { #oapi::SchemaFormat::KnownFormat(#oapi::oapi::KnownFormat::UInt64) }), + "u64" => tokens.extend(quote! { #oapi::oapi::SchemaFormat::KnownFormat(#oapi::oapi::KnownFormat::UInt64) }), #[cfg(not(feature="non-strict-integers"))] "i8" | "i16" | "u8" | "u16" | "u32" => {