From 844c935af61eead3f29c36d6aaf4466d77369276 Mon Sep 17 00:00:00 2001 From: wolf4ood Date: Mon, 22 Jun 2020 23:18:24 +0200 Subject: [PATCH] Changed API from get_checked to get_or_null https://github.com/wolf4ood/orientdb-rs/issues/21 --- orientdb-macro/src/result.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orientdb-macro/src/result.rs b/orientdb-macro/src/result.rs index 2ed3ac9..b588f90 100644 --- a/orientdb-macro/src/result.rs +++ b/orientdb-macro/src/result.rs @@ -15,7 +15,7 @@ pub fn derive(input: &DeriveInput) -> syn::Result { let ty = &field.ty; Some(parse_quote!( - let #id: #ty = result.get_checked(#id_s)?; + let #id: #ty = result.get_or_null(#id_s)?; )) });