Remove unneded parens

This commit is contained in:
g 2020-11-28 12:18:54 +07:00
parent 2823504e84
commit 7c802e7056

View File

@ -122,7 +122,7 @@ impl File {
/// Can only be done if parent container already exists. /// Can only be done if parent container already exists.
/// ///
/// For specifics refer to `insert()` method. /// For specifics refer to `insert()` method.
fn touch(&mut self, pointer: &str) -> (Result<(), IncorrectPointer>) { fn touch(&mut self, pointer: &str) -> Result<(), IncorrectPointer> {
// If value is present - we're done // If value is present - we're done
if pointer.is_empty() || self.contents.pointer_mut(pointer).is_some() { if pointer.is_empty() || self.contents.pointer_mut(pointer).is_some() {
return Ok(()); return Ok(());