Make is_empty helpers in sync_events public
This commit is contained in:
parent
4a34375449
commit
d5d2d1d893
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user