Skip to content

Commit efe762b

Browse files
committed
Update lib.rs
1 parent 8365d88 commit efe762b

File tree

1 file changed

+0
-14
lines changed
  • crates/rustapi-macros/src

1 file changed

+0
-14
lines changed

crates/rustapi-macros/src/lib.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ use syn::{
2424

2525
mod api_error;
2626

27-
/// Derive macro for `ApiError`
28-
///
29-
/// # Example
30-
///
31-
/// ```rust,ignore
32-
/// #[derive(ApiError)]
33-
/// enum MyError {
34-
/// #[error(status = 404, message = "User not found")]
35-
/// UserNotFound,
36-
/// }
37-
/// ```
38-
3927
/// Auto-register a schema type for zero-config OpenAPI.
4028
///
4129
/// Attach this to a `struct` or `enum` that also derives `Schema` (utoipa::ToSchema).
@@ -1109,8 +1097,6 @@ pub fn derive_validate(input: TokenStream) -> TokenStream {
11091097
// ApiError Derive Macro
11101098
// ============================================
11111099

1112-
/// Parsed error attribute info
1113-
11141100
/// Derive macro for implementing IntoResponse for error enums
11151101
///
11161102
/// # Example

0 commit comments

Comments
 (0)