From 3c3a298bb414062200cf0d1e5eb8bff1b6340cfa Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Sun, 22 Sep 2024 22:38:18 +0200 Subject: [PATCH] fix: de/serialize tags as DisplayFromStr --- crates/core/src/repofile/snapshotfile.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/core/src/repofile/snapshotfile.rs b/crates/core/src/repofile/snapshotfile.rs index 7af92441..7b8c762f 100644 --- a/crates/core/src/repofile/snapshotfile.rs +++ b/crates/core/src/repofile/snapshotfile.rs @@ -53,6 +53,7 @@ pub struct SnapshotOptions { pub label: Option, /// Tags to add to snapshot (can be specified multiple times) + #[serde_as(as = "Vec")] #[cfg_attr(feature = "clap", clap(long = "tag", value_name = "TAG[,TAG,..]"))] #[cfg_attr(feature = "merge", merge(strategy = merge::vec::overwrite_empty))] pub tags: Vec,