From 7934fd2d8ae1ea33818e14b2009914f831879ca8 Mon Sep 17 00:00:00 2001 From: Gigas002 <24297712+Gigas002@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:35:16 +0900 Subject: [PATCH] Implement missing conversion from string to webp enum (#121) --- wayshot/src/utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/wayshot/src/utils.rs b/wayshot/src/utils.rs index 1f8bf8b4..feca42f8 100644 --- a/wayshot/src/utils.rs +++ b/wayshot/src/utils.rs @@ -128,6 +128,7 @@ impl FromStr for EncodingFormat { "png" => Self::Png, "ppm" => Self::Ppm, "qoi" => Self::Qoi, + "webp" => Self::Webp, _ => bail!("unsupported extension '{s}'"), }) }