[librsvg/update-clap: 11/11] Don't use ValueEnum - we aren't really using it now
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/update-clap: 11/11] Don't use ValueEnum - we aren't really using it now
- Date: Tue, 20 Sep 2022 17:05:28 +0000 (UTC)
commit 200f11607f27151dcefd5c18e6395eff8781b6e7
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Sep 20 11:52:49 2022 -0500
Don't use ValueEnum - we aren't really using it now
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/748>
src/bin/rsvg-convert.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/bin/rsvg-convert.rs b/src/bin/rsvg-convert.rs
index 3b2ebbfe4..bde6643d3 100644
--- a/src/bin/rsvg-convert.rs
+++ b/src/bin/rsvg-convert.rs
@@ -1,4 +1,4 @@
-use clap::{crate_version, ValueEnum};
+use clap::crate_version;
use gio::prelude::*;
use gio::{Cancellable, FileCreateFlags, InputStream, OutputStream};
@@ -473,7 +473,7 @@ impl std::fmt::Display for Output {
}
// Keep this enum in sync with supported_formats in parse_args()
-#[derive(ValueEnum, Clone, Copy, Debug)]
+#[derive(Clone, Copy, Debug)]
enum Format {
Png,
Pdf,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]