diff options
Diffstat (limited to 'rust/src/api_wrappers.rs')
-rw-r--r-- | rust/src/api_wrappers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/api_wrappers.rs b/rust/src/api_wrappers.rs index 1f61cc9b..85739ea6 100644 --- a/rust/src/api_wrappers.rs +++ b/rust/src/api_wrappers.rs @@ -39,7 +39,7 @@ macro_rules! wrap_entity_handlers { match expand { None => $model::db_get(&conn, entity_id), Some(param) => { - let expand_flags = ExpandFlags::from_string(¶m); + let expand_flags = ExpandFlags::from_str(¶m)?; let mut entity = $model::db_get(&conn, entity_id)?; entity.db_expand(&conn, expand_flags)?; Ok(entity) |