impl From<&'a str> for Link
This commit is contained in:
parent
91e3b58f3e
commit
437b3133cc
1 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,14 @@ impl From<String> for Link {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a> From<&'a str> for Link {
|
||||||
|
|
||||||
|
fn from(s: &'a str) -> Link {
|
||||||
|
Link(String::from(s))
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
impl Deref for Link {
|
impl Deref for Link {
|
||||||
type Target = String;
|
type Target = String;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue