summaryrefslogtreecommitdiffstats
path: root/rust/src/editing.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-09 00:12:16 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-09 00:12:16 -0800
commit5dca65fa0992bedb826aa7a762dc69e1beaed2de (patch)
tree2f736147f38543632ec2c2135fc48d382f727ec0 /rust/src/editing.rs
parent9979d34df0cdef3be2fb40b6da4c4eaddeb5ba79 (diff)
downloadfatcat-5dca65fa0992bedb826aa7a762dc69e1beaed2de.tar.gz
fatcat-5dca65fa0992bedb826aa7a762dc69e1beaed2de.zip
some clippy nits
Diffstat (limited to 'rust/src/editing.rs')
-rw-r--r--rust/src/editing.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/editing.rs b/rust/src/editing.rs
index e3777e24..b501a6cf 100644
--- a/rust/src/editing.rs
+++ b/rust/src/editing.rs
@@ -26,7 +26,7 @@ impl EditContext {
if count > 0 {
return Err(ErrorKind::EditgroupAlreadyAccepted(self.editgroup_id.to_string()).into());
}
- return Ok(());
+ Ok(())
}
}
@@ -48,10 +48,10 @@ pub fn make_edit_context(
(None, false) => FatCatId::from_uuid(&get_or_create_editgroup(editor_id.to_uuid(), conn)?),
};
Ok(EditContext {
- editor_id: editor_id,
- editgroup_id: editgroup_id,
+ editor_id,
+ editgroup_id,
extra_json: None,
- autoaccept: autoaccept,
+ autoaccept,
})
}