feat: zbus 4.2.1 update

This commit is contained in:
Ashley Wulber 2024-05-16 15:24:53 -04:00 committed by GitHub
parent ce9c789fe6
commit f05789c4ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 390 additions and 389 deletions

View file

@ -30,7 +30,7 @@ impl<'a> Ipv4Config<'a> {
.filter_map(|mut map| {
let address = {
let address_str = map.remove("address")?;
let address_str = address_str.downcast_ref()?;
let address_str = address_str.downcast_ref().ok()?;
Ipv4Addr::from_str(address_str).ok()?
};
let prefix = u32::try_from(map.remove("prefix")?).ok()?;

View file

@ -29,7 +29,7 @@ impl<'a> Ipv6Config<'a> {
.filter_map(|mut map| {
let address = {
let address_str = map.remove("address")?;
let address_str = address_str.downcast_ref()?;
let address_str = address_str.downcast_ref().ok()?;
Ipv6Addr::from_str(address_str).ok()?
};
let prefix = u32::try_from(map.remove("prefix")?).ok()?;