Skip to content

Commit

Permalink
sea-query-attr 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Oct 5, 2024
1 parent d3ac2c2 commit c142996
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion sea-query-attr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[package]
name = "sea-query-attr"
version = "0.1.2"
version = "0.1.3"
authors = [ "Pedro Henrique <[email protected]>" ]
edition = "2021"
description = "Proc macros for useful features in Sea Query"
Expand Down
4 changes: 0 additions & 4 deletions sea-query-attr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ impl Default for GenEnumArgs {
}
}

#[deprecated(
since = "0.1.2",
note = "use #[enum_def] attr defined in `sea-query-derive` crate"
)]
#[proc_macro_attribute]
pub fn enum_def(args: TokenStream, input: TokenStream) -> TokenStream {
let args = parse_macro_input!(args with AttributeArgs::parse_terminated);
Expand Down
8 changes: 0 additions & 8 deletions sea-query-attr/tests/compile-fail/enum.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,3 @@ error: #[enum_def] can only be used on structs
|
4 | enum Hello {
| ^^^^

warning: use of deprecated macro `enum_def`: use #[enum_def] attr defined in `sea-query-derive` crate
--> tests/compile-fail/enum.rs:3:3
|
3 | #[enum_def]
| ^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
8 changes: 0 additions & 8 deletions sea-query-attr/tests/compile-fail/tuple_struct.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,3 @@ error: #[enum_def] can only be used on structs
|
4 | struct Hello(String);
| ^^^^^^

warning: use of deprecated macro `enum_def`: use #[enum_def] attr defined in `sea-query-derive` crate
--> tests/compile-fail/tuple_struct.rs:3:3
|
3 | #[enum_def]
| ^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
8 changes: 0 additions & 8 deletions sea-query-attr/tests/compile-fail/unknown_field.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,3 @@ error: Unknown field: `unknown_field`
|
3 | #[enum_def(unknown_field)]
| ^^^^^^^^^^^^^

warning: use of deprecated macro `enum_def`: use #[enum_def] attr defined in `sea-query-derive` crate
--> tests/compile-fail/unknown_field.rs:3:3
|
3 | #[enum_def(unknown_field)]
| ^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default

0 comments on commit c142996

Please sign in to comment.