diff --git a/libimagbookmark/src/link.rs b/libimagbookmark/src/link.rs index 7dbab981..9ea53c0c 100644 --- a/libimagbookmark/src/link.rs +++ b/libimagbookmark/src/link.rs @@ -7,6 +7,14 @@ use url::Url; #[derive(Debug, Clone)] pub struct Link(String); +impl From for Link { + + fn from(s: String) -> Link { + Link(s) + } + +} + impl Deref for Link { type Target = String;