MCPcopy Create free account
hub / github.com/HFQR/xitca-web / error_impl

Function error_impl

codegen/src/lib.rs:38–41  ·  view source on GitHub ↗
(attr: TokenStream, item: TokenStream)

Source from the content-addressed store, hash-verified

36
37#[proc_macro_attribute]
38pub fn error_impl(attr: TokenStream, item: TokenStream) -> TokenStream {
39 let item = syn::parse_macro_input!(item);
40 error::error(attr, item).unwrap_or_else(|e| e.to_compile_error().into())
41}
42
43#[proc_macro_attribute]
44pub fn middleware_impl(attr: TokenStream, item: TokenStream) -> TokenStream {

Callers

nothing calls this directly

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected