Skip to content

Commit

Permalink
Merge pull request #494 from smrtrfszm/master
Browse files Browse the repository at this point in the history
Remove `r#` prefix when deriving `FromQueryResult`
  • Loading branch information
tyt2y3 authored Feb 5, 2022
2 parents 21216f3 + 660f233 commit cf793aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sea-orm-macros/src/derives/from_query_result.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use proc_macro2::{Ident, TokenStream};
use quote::{format_ident, quote, quote_spanned};
use syn::{Data, DataStruct, Field, Fields};
use syn::{ext::IdentExt, Data, DataStruct, Field, Fields};

/// Method to derive a [QueryResult](sea_orm::QueryResult)
pub fn expand_derive_from_query_result(ident: Ident, data: Data) -> syn::Result<TokenStream> {
Expand All @@ -24,7 +24,7 @@ pub fn expand_derive_from_query_result(ident: Ident, data: Data) -> syn::Result<
let name: Vec<TokenStream> = field
.iter()
.map(|f| {
let s = f.to_string();
let s = f.unraw().to_string();
quote! { #s }
})
.collect();
Expand Down

0 comments on commit cf793aa

Please sign in to comment.