diff options
Diffstat (limited to 'src/directive/img.rs')
-rw-r--r-- | src/directive/img.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directive/img.rs b/src/directive/img.rs index dea2625..307f035 100644 --- a/src/directive/img.rs +++ b/src/directive/img.rs @@ -27,8 +27,8 @@ impl Img { } } -impl From<ParsedDirective> for Img { - fn from(p: ParsedDirective) -> Self { +impl From<&ParsedDirective> for Img { + fn from(p: &ParsedDirective) -> Self { let unnamed = p.unnamed_args().pop().unwrap(); Img::new(unnamed.into()) } |