From f526522d5bc722f32a9084cda92e4b003b4aab20 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Tue, 29 Sep 2020 21:48:57 -0700 Subject: "Fix" empty vector deserialization problem Needed until https://github.com/softprops/envy/pull/51 got merged and a new release been cut. --- src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.rs b/src/config.rs index 6bb6efb..44eaf3f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -51,6 +51,7 @@ where let strings = Vec::::deserialize(d).map_err(D::Error::custom)?; let result = strings .iter() + .filter(|s| !s.is_empty()) .map(|s| nitrokey::SerialNumber::from_str(s)) .collect::>(); result.map_err(D::Error::custom) -- cgit v1.2.3