Skip to content

Commit

Permalink
Changed API from get_checked to get_or_null #21
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Jun 22, 2020
1 parent 1e2127c commit 844c935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orientdb-macro/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn derive(input: &DeriveInput) -> syn::Result<proc_macro2::TokenStream> {
let ty = &field.ty;

Some(parse_quote!(
let #id: #ty = result.get_checked(#id_s)?;
let #id: #ty = result.get_or_null(#id_s)?;
))
});

Expand Down

0 comments on commit 844c935

Please sign in to comment.