Skip to content

Commit 7a39f70

Browse files
committed
Remove unnecessary quote
1 parent 1a51800 commit 7a39f70

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/burner/Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/derive/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ proc-macro = true
1515
default = []
1616

1717
[dependencies]
18-
quote = "1.0"
1918
syn = { version = "1.0", features = ["full"] }
2019

2120
[dev-dependencies]

packages/derive/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
#[macro_use]
2-
extern crate quote;
3-
#[macro_use]
42
extern crate syn;
53

64
use proc_macro::TokenStream;
75
use std::str::FromStr;
86

97
#[proc_macro_attribute]
108
pub fn entry_point(_attr: TokenStream, mut item: TokenStream) -> TokenStream {
11-
//println!("attr: \"{}\"", attr.to_string()); //println!("item: \"{}\"", item.to_string());
129
let cloned = item.clone();
1310
let function = parse_macro_input!(cloned as syn::ItemFn);
14-
let name = format_ident!("{}", &function.sig.ident);
15-
// println!("name: \"{}\"", &name);
11+
let name = function.sig.ident.to_string();
1612

1713
let new_code = format!(
1814
r##"

0 commit comments

Comments
 (0)