summaryrefslogtreecommitdiff
path: root/src/directive/img.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/directive/img.rs')
-rw-r--r--src/directive/img.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/directive/img.rs b/src/directive/img.rs
index f81f8a9..e10851e 100644
--- a/src/directive/img.rs
+++ b/src/directive/img.rs
@@ -16,9 +16,7 @@ impl Img {
pub const ALLOW_ANY_UNNAMED: bool = true;
pub fn new(src: String) -> Self {
- Self {
- src,
- }
+ Self { src }
}
pub fn process(&self, site: &Site, meta: &mut PageMeta) -> Result<String, SiteError> {