summaryrefslogtreecommitdiffstats
path: root/rust/src/api_wrappers.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-11 20:32:01 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-11 20:32:33 -0700
commitd45deae242f6a256b52874d5a6995e3a7e0bdab4 (patch)
treefd20da515628e3bb2924b5cc1e630a60dd9cba32 /rust/src/api_wrappers.rs
parent99306a4dab4919c1c9fed338560f8c3e01a6382f (diff)
downloadfatcat-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.rs2
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(&param);
+ let expand_flags = ExpandFlags::from_str(&param)?;
let mut entity = $model::db_get(&conn, entity_id)?;
entity.db_expand(&conn, expand_flags)?;
Ok(entity)