Skip to content

Commit 46047e4

Browse files
committed
ignore macro
1 parent 24377ca commit 46047e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/vespera_macro/src

crates/vespera_macro/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ use crate::openapi_generator::generate_openapi_doc_with_metadata;
2525
use vespera_core::openapi::Server;
2626
use vespera_core::route::HttpMethod;
2727

28+
type SchemaStorage = LazyLock<Mutex<Vec<StructMetadata>>>;
29+
2830
/// Validate route function - must be pub and async
2931
fn validate_route_fn(item_fn: &syn::ItemFn) -> Result<(), syn::Error> {
3032
if !matches!(item_fn.vis, syn::Visibility::Public(_)) {
@@ -65,8 +67,6 @@ pub fn route(attr: TokenStream, item: TokenStream) -> TokenStream {
6567
}
6668
}
6769

68-
type SchemaStorage = LazyLock<Mutex<Vec<StructMetadata>>>;
69-
7070
static SCHEMA_STORAGE: SchemaStorage = LazyLock::new(|| Mutex::new(Vec::new()));
7171

7272
/// Extract custom schema name from #[schema(name = "...")] attribute

0 commit comments

Comments
 (0)