summaryrefslogtreecommitdiffstats
path: root/rust/src/api_wrappers.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-03 22:09:06 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-03 22:09:06 -0800
commit94a6c7f58ba23b2c37b0a997fc4a5e2e16692599 (patch)
tree91cf503b569669e78d3a6f8e19554e7dc45f9fda /rust/src/api_wrappers.rs
parentab4e1bbf2bb9bb67d6639b90a10970b54dd1aa03 (diff)
downloadfatcat-94a6c7f58ba23b2c37b0a997fc4a5e2e16692599.tar.gz
fatcat-94a6c7f58ba23b2c37b0a997fc4a5e2e16692599.zip
fix rust side of login
Diffstat (limited to 'rust/src/api_wrappers.rs')
-rw-r--r--rust/src/api_wrappers.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/rust/src/api_wrappers.rs b/rust/src/api_wrappers.rs
index abaa2310..c663c11d 100644
--- a/rust/src/api_wrappers.rs
+++ b/rust/src/api_wrappers.rs
@@ -930,8 +930,7 @@ impl Api for Server {
// admin can update any username
auth_context.require_role(FatcatRole::Admin)?;
};
- update_editor_username(&conn, editor_id, editor.username)
- .map(|e| e.into_model())
+ update_editor_username(&conn, editor_id, editor.username).map(|e| e.into_model())
}) {
Ok(editor) => UpdateEditorResponse::UpdatedEditor(editor),
Err(Error(ErrorKind::Diesel(e), _)) => {