aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/record.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2018-06-30 16:08:05 +0200
committerKatharina Fey <kookie@spacekookie.de>2018-06-30 16:08:05 +0200
commite20809885cb6c701e54bb67c21f31c9046102386 (patch)
treecb1e15b45be2f4d042981cf4cf565a823fa68a5d /lockchain-core/src/record.rs
parent21fc2e1f8f1add8ed33a10ffa658acfa53d2fb61 (diff)
Adding more utility functions to a bunch of places
Integrating the userstore into the http crate
Diffstat (limited to 'lockchain-core/src/record.rs')
-rw-r--r--lockchain-core/src/record.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lockchain-core/src/record.rs b/lockchain-core/src/record.rs
index ed66f36..ac913b4 100644
--- a/lockchain-core/src/record.rs
+++ b/lockchain-core/src/record.rs
@@ -90,7 +90,7 @@ impl<T: Body> Record<T> {
/// Attempt to set a key to a certain value
pub fn add_data(&mut self, key: &str, value: Payload) -> Option<()> {
- (self.body.as_mut()?).set_field(key, value)?;
+ (self.body.as_mut()?).set_field(key, value);
Some(())
}