summaryrefslogtreecommitdiff
path: root/src/directive/tag.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/directive/tag.rs')
-rw-r--r--src/directive/tag.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directive/tag.rs b/src/directive/tag.rs
index baf4561..c64acfc 100644
--- a/src/directive/tag.rs
+++ b/src/directive/tag.rs
@@ -22,8 +22,8 @@ impl Tag {
}
}
-impl From<ParsedDirective> for Tag {
- fn from(p: ParsedDirective) -> Self {
+impl From<&ParsedDirective> for Tag {
+ fn from(p: &ParsedDirective) -> Self {
let tags = p.unnamed_args().iter().map(|s| s.to_string()).collect();
Tag::new(tags)
}