diff --git a/gemtext/src/lib.rs b/gemtext/src/lib.rs index e350b95..8bf3cfa 100644 --- a/gemtext/src/lib.rs +++ b/gemtext/src/lib.rs @@ -18,10 +18,14 @@ impl Builder { self } - pub fn link>(mut self, to: T, name: Option) -> Builder { + pub fn link(mut self, to: T, name: Option) -> Self + where + T: Into, + S: Into, + { self.nodes.push(Node::Link { to: to.into(), - name: name, + name: name.map(Into::into), }); self }