Skip to content

Commit

Permalink
fix: Use string instead of ident for table_name to use kebab-case (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb authored Jun 29, 2020
1 parent faac127 commit d71d0e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raiden-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ pub fn derive_raiden(input: TokenStream) -> TokenStream {
let attrs = input.attrs;

let table_name = if let Some(name) = finder::find_table_name(&attrs) {
format_ident!("{}", name)
name
} else {
struct_name.clone()
struct_name.clone().to_string()
};

let rename_all = finder::find_rename_all(&attrs);
Expand Down Expand Up @@ -147,7 +147,7 @@ pub fn derive_raiden(input: TokenStream) -> TokenStream {
pub fn new(region: ::raiden::Region) -> Self {
let client = DynamoDbClient::new(region);
Self {
table_name: stringify!(#table_name),
table_name: #table_name,
table_prefix: "".to_owned(),
table_suffix: "".to_owned(),
client,
Expand Down

0 comments on commit d71d0e1

Please sign in to comment.