Skip to content

Commit

Permalink
fmt; move compile fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Sep 28, 2024
1 parent d37b93e commit aaf9b84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sea-query-attr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ impl Default for GenEnumArgs {
}
}

#[deprecated(since = "0.1.2", note = "use #[enum_def] attr defined in `sea-query-derive` crate")]
#[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
1 change: 1 addition & 0 deletions sea-query-derive/tests/test_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
fn build_tests() {
let t = trybuild::TestCases::new();
t.compile_fail("./tests/compile-fail/*.rs");
t.compile_fail("./tests/compile-fail/enum_def/*.rs");

// all of these are exactly the same as the examples in `examples/derive.rs`
t.pass("./tests/pass/*.rs");
Expand Down

0 comments on commit aaf9b84

Please sign in to comment.