diff --git a/libimagbookmark/src/link.rs b/libimagbookmark/src/link.rs index 9ea53c0c..078d45d7 100644 --- a/libimagbookmark/src/link.rs +++ b/libimagbookmark/src/link.rs @@ -15,6 +15,14 @@ impl From for Link { } +impl<'a> From<&'a str> for Link { + + fn from(s: &'a str) -> Link { + Link(String::from(s)) + } + +} + impl Deref for Link { type Target = String;