From 3b485febe490eec2043ec52d13b63a86d9e2f47c Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 8 Jul 2016 16:20:35 +0200 Subject: [PATCH] fixup! Add Link type --- libimagbookmark/src/link.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libimagbookmark/src/link.rs b/libimagbookmark/src/link.rs index 6b835bdc..3dd3aeb0 100644 --- a/libimagbookmark/src/link.rs +++ b/libimagbookmark/src/link.rs @@ -1,4 +1,4 @@ -use std::ops::{Deref, DerefMut} +use std::ops::{Deref, DerefMut}; #[derive(Debug, Clone)] pub struct Link(String); @@ -6,7 +6,7 @@ pub struct Link(String); impl Deref for Link { type Target = String; - fn deref(&self) => &String { + fn deref(&self) -> &String { &self.0 } @@ -14,7 +14,7 @@ impl Deref for Link { impl DerefMut for Link { - fn deref_mut(&mut self) => &mut String { + fn deref_mut(&mut self) -> &mut String { &mut self.0 }