Use default parameters from underlying functions

This commit is contained in:
Matthias Beyer 2016-11-14 14:20:47 +01:00
parent 2a04da9b3f
commit dab6ad0f20

View file

@ -1025,22 +1025,22 @@ impl EntryHeader {
#[inline] #[inline]
pub fn insert(&mut self, spec: &str, v: Value) -> Result<bool> { pub fn insert(&mut self, spec: &str, v: Value) -> Result<bool> {
self.insert_with_sep(spec, '.', v) self.0.insert(spec, v)
} }
#[inline] #[inline]
pub fn set(&mut self, spec: &str, v: Value) -> Result<Option<Value>> { pub fn set(&mut self, spec: &str, v: Value) -> Result<Option<Value>> {
self.set_with_sep(spec, '.', v) self.0.set(spec, v)
} }
#[inline] #[inline]
pub fn read(&self, spec: &str) -> Result<Option<Value>> { pub fn read(&self, spec: &str) -> Result<Option<Value>> {
self.read_with_sep(spec, '.') self.0.read(spec)
} }
#[inline] #[inline]
pub fn delete(&mut self, spec: &str) -> Result<Option<Value>> { pub fn delete(&mut self, spec: &str) -> Result<Option<Value>> {
self.delete_with_sep(spec, '.') self.0.delete(spec)
} }
} }