Skip to content

Commit

Permalink
Config: accept 'null' for allow/deny (fix #169) (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch authored Dec 8, 2023
1 parent 6115bc6 commit 45ccfd8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zenoh-plugin-dds/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<E>(self) -> Result<Self::Value, E>
where
E: de::Error,
{
Ok(None)
}

fn visit_str<E>(self, value: &str) -> Result<Self::Value, E>
where
E: de::Error,
Expand Down

0 comments on commit 45ccfd8

Please sign in to comment.