events: Fix lints
This commit is contained in:
parent
085f082c5b
commit
676548a2fe
@ -33,7 +33,7 @@ impl<'de> Deserialize<'de> for DummyToDeviceEventContent {
|
|||||||
impl<'de> de::Visitor<'de> for Visitor {
|
impl<'de> de::Visitor<'de> for Visitor {
|
||||||
type Value = DummyToDeviceEventContent;
|
type Value = DummyToDeviceEventContent;
|
||||||
|
|
||||||
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
formatter.write_str("a struct")
|
formatter.write_str("a struct")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ impl<'de> Deserialize<'de> for DummyToDeviceEventContent {
|
|||||||
where
|
where
|
||||||
A: de::MapAccess<'de>,
|
A: de::MapAccess<'de>,
|
||||||
{
|
{
|
||||||
while let Some(_) = map.next_entry::<de::IgnoredAny, de::IgnoredAny>()? {}
|
while map.next_entry::<de::IgnoredAny, de::IgnoredAny>()?.is_some() {}
|
||||||
Ok(DummyToDeviceEventContent)
|
Ok(DummyToDeviceEventContent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user