aboutsummaryrefslogtreecommitdiff
path: root/src/actions.rs
diff options
context:
space:
mode:
authorRubén Beltrán del Río <jj@r.bdr.sh>2026-01-17 11:22:22 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-01-17 12:24:45 +0100
commit88d6bf80f5cdbbb90ead197bd41a67eb8c44e50e (patch)
tree401549b24fe8a747ef6739389b1b38f33ef016bb /src/actions.rs
parent17898fbabde35ab346c133114e78614e707c0eca (diff)
Make clippy stricter and fix
Diffstat (limited to 'src/actions.rs')
-rw-r--r--src/actions.rs4
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",