Skip to content

Commit

Permalink
chore: remove unneeded clone call
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSimplyKyle authored and SiongSng committed Sep 4, 2023
1 parent 56d826e commit 05d7309
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/native/crates/struct-key-value-pair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ use syn::{parse_macro_input, Ident, ItemStruct};
#[proc_macro_derive(VariantStruct)]
pub fn variants_enum(input: TokenStream) -> TokenStream {
let input = parse_macro_input!(input as ItemStruct);
let struct_ident = input.ident.clone();
let key_ident = format_ident!("{}Key", input.ident);
let value_ident = format_ident!("{}Value", input.ident);
let struct_ident = input.ident;
let key_ident = format_ident!("{}Key", &struct_ident);
let value_ident = format_ident!("{}Value", &struct_ident);
let mut ident = Vec::new();
let mut camel = Vec::new();
let mut types = Vec::new();
Expand Down

0 comments on commit 05d7309

Please sign in to comment.