From 7ac5b0c22996c075f7d9e65cd9b26919c10a34bb Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Sun, 17 Dec 2023 15:55:15 +0100 Subject: [PATCH] fix: set a serde default --- crates/rattler_conda_types/src/match_spec/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rattler_conda_types/src/match_spec/mod.rs b/crates/rattler_conda_types/src/match_spec/mod.rs index 290e7119d..3cfb0edbf 100644 --- a/crates/rattler_conda_types/src/match_spec/mod.rs +++ b/crates/rattler_conda_types/src/match_spec/mod.rs @@ -271,7 +271,7 @@ pub struct NamelessMatchSpec { /// Match the specific filename of the package pub file_name: Option, /// The channel of the package - #[serde(deserialize_with = "deserialize_channel")] + #[serde(deserialize_with = "deserialize_channel", default)] pub channel: Option>, /// The subdir of the channel pub subdir: Option,