Skip to content

Commit

Permalink
fix: de/serialize tags as DisplayFromStr (#270)
Browse files Browse the repository at this point in the history
Fixes a regression about de/serializing tags, introduced by #267
  • Loading branch information
aawsome authored Sep 23, 2024
1 parent e7edd4d commit 59bd3e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/core/src/repofile/snapshotfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub struct SnapshotOptions {
pub label: Option<String>,

/// Tags to add to snapshot (can be specified multiple times)
#[serde_as(as = "Vec<DisplayFromStr>")]
#[cfg_attr(feature = "clap", clap(long = "tag", value_name = "TAG[,TAG,..]"))]
#[cfg_attr(feature = "merge", merge(strategy = merge::vec::overwrite_empty))]
pub tags: Vec<StringList>,
Expand Down

0 comments on commit 59bd3e5

Please sign in to comment.