From 45ccfd83288ba82e337f2c1a7900c209e7484ee2 Mon Sep 17 00:00:00 2001 From: Julien Enoch Date: Fri, 8 Dec 2023 16:38:00 +0100 Subject: [PATCH] Config: accept 'null' for allow/deny (fix #169) (#170) --- zenoh-plugin-dds/src/config.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zenoh-plugin-dds/src/config.rs b/zenoh-plugin-dds/src/config.rs index f68d0463..5672172d 100644 --- a/zenoh-plugin-dds/src/config.rs +++ b/zenoh-plugin-dds/src/config.rs @@ -199,6 +199,14 @@ impl<'de> Visitor<'de> for RegexVisitor { formatter.write_str(r#"either a string or a list of strings"#) } + // for `null` value + fn visit_unit(self) -> Result + where + E: de::Error, + { + Ok(None) + } + fn visit_str(self, value: &str) -> Result where E: de::Error,