diff options
Diffstat (limited to 'src/actions.rs')
| -rw-r--r-- | src/actions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions.rs b/src/actions.rs index 859d559..fdea125 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -25,14 +25,14 @@ pub enum ImageFormat { } impl ImageFormat { - pub fn extension(&self) -> &'static str { + pub fn extension(self) -> &'static str { match self { ImageFormat::Png => "png", ImageFormat::Svg => "svg", } } - pub fn mime_type(&self) -> &'static str { + pub fn mime_type(self) -> &'static str { match self { ImageFormat::Png => "image/png", ImageFormat::Svg => "image/svg+xml", |