Skip to content

Commit

Permalink
Merge pull request #14 from jmg-duarte/main
Browse files Browse the repository at this point in the history
upgrade derive-syn-parse
  • Loading branch information
sam0x17 committed Jul 4, 2024
2 parents 3b21163 + 65bd06a commit 7b938a4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ all-features = true
[dependencies]
quote = "1"
syn = { version = "2", features = ["full"] }
derive-syn-parse = "0.1.5"
derive-syn-parse = "0.2.0"
proc-macro2 = "1"
macro_magic_core_macros = { version = "0.5.0", path = "../core_macros" }
const-random = "0.1.15"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ macro_magic = { path = "../../", features = ["proc_support"] }
syn = { version = "2", features = ["full"] }
quote = "1"
proc-macro2 = "1"
derive-syn-parse = "0.1.5"
derive-syn-parse = "0.2.0"
2 changes: 1 addition & 1 deletion tests/test_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn test_tokens_attr1(attr: TokenStream, tokens: TokenStream) -> TokenStream
assert_eq!(imported_item_str, "struct AnotherStruct { field1 : u32, }");
assert_eq!(
attached_item_str,
"pub mod hunter { pub fn stuff() { println! (\"things\") ; } }"
"pub mod hunter { pub fn stuff() { println! (\"things\"); } }"
);
quote! {
#attached_item
Expand Down
6 changes: 3 additions & 3 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ fn println_inside_fn_current_file() {
let tokens = example_tokens_proc!(a_random_fn);
assert_eq!(
tokens.to_string(),
"fn a_random_fn() { println! (\"hey\") ; }"
"fn a_random_fn() { println! (\"hey\"); }"
);
}

Expand All @@ -193,7 +193,7 @@ fn println_inside_fn_external_file() {
let tokens = example_tokens_proc!(external_file::external_fn_with_println);
assert_eq!(
tokens.to_string(),
"fn external_fn_with_println() { println! (\"testing\") ; }"
"fn external_fn_with_println() { println! (\"testing\"); }"
);
}

Expand All @@ -202,7 +202,7 @@ fn macro_calls_inside_fn_external_crate() {
let tokens = example_tokens_proc!(external_crate::external_fn_with_local_macro_calls);
assert_eq!(
tokens.to_string(),
"fn external_fn_with_local_macro_calls() -> u32 { another_macro! () ; 1337 }"
"fn external_fn_with_local_macro_calls() -> u32 { another_macro! (); 1337 }"
);
}

Expand Down

0 comments on commit 7b938a4

Please sign in to comment.