summaryrefslogtreecommitdiffstats
path: root/rust/src/editing.rs
diff options
context:
space:
mode:
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,
})
}