Make is_empty helpers in sync_events public

This commit is contained in:
timokoesters 2020-07-27 10:34:17 +02:00
parent 4a34375449
commit d5d2d1d893
No known key found for this signature in database
GPG Key ID: 24DA7517711A2BA4

View File

@ -373,7 +373,7 @@ pub struct ToDevice {
impl ToDevice { impl ToDevice {
/// Returns true if there are no to-device events. /// Returns true if there are no to-device events.
fn is_empty(&self) -> bool { pub fn is_empty(&self) -> bool {
self.events.is_empty() self.events.is_empty()
} }
} }
@ -394,7 +394,7 @@ pub struct DeviceLists {
impl DeviceLists { impl DeviceLists {
/// Returns true if there are no device list updates. /// Returns true if there are no device list updates.
fn is_empty(&self) -> bool { pub fn is_empty(&self) -> bool {
self.changed.is_empty() && self.left.is_empty() self.changed.is_empty() && self.left.is_empty()
} }
} }