switch Result to anyhow from custom

This commit is contained in:
OMGeeky
2023-07-14 16:13:09 +02:00
parent ad8dd1bec4
commit 80048b21a7
6 changed files with 23 additions and 16 deletions

View File

@@ -115,7 +115,7 @@ fn implement_get_parameter_from_field(ast: &DeriveInput, table_ident: &Ident) ->
google_bigquery_v2::prelude::trace!("get_parameter_from_field(); field_name: '{}' self:{:?}", field_name, self);
match field_name {
#(#fields)*
_ => Err(format!("Field {} not found", field_name).into()),
_ => Err(google_bigquery_v2::prelude::anyhow!("Field {} not found", field_name).into()),
}
}
}