From ee53a28c9a6b7a4634b996157880e35f83476b89 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 8 Jul 2016 16:40:09 +0200 Subject: [PATCH] Impl From for Link --- libimagbookmark/src/link.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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;