diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-11 20:32:01 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-11 20:32:33 -0700 |
commit | d45deae242f6a256b52874d5a6995e3a7e0bdab4 (patch) | |
tree | fd20da515628e3bb2924b5cc1e630a60dd9cba32 /rust/src/api_wrappers.rs | |
parent | 99306a4dab4919c1c9fed338560f8c3e01a6382f (diff) | |
download | fatcat-d45deae242f6a256b52874d5a6995e3a7e0bdab4.tar.gz fatcat-d45deae242f6a256b52874d5a6995e3a7e0bdab4.zip |
use idiomatic from_str for ExpandFlags
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) |