From d5d2d1d893fa12d27960e4c58d6c09b215d06e95 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Mon, 27 Jul 2020 10:34:17 +0200 Subject: [PATCH] Make is_empty helpers in sync_events public --- ruma-client-api/src/r0/sync/sync_events.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruma-client-api/src/r0/sync/sync_events.rs b/ruma-client-api/src/r0/sync/sync_events.rs index 05639434..fb389273 100644 --- a/ruma-client-api/src/r0/sync/sync_events.rs +++ b/ruma-client-api/src/r0/sync/sync_events.rs @@ -373,7 +373,7 @@ pub struct ToDevice { impl ToDevice { /// Returns true if there are no to-device events. - fn is_empty(&self) -> bool { + pub fn is_empty(&self) -> bool { self.events.is_empty() } } @@ -394,7 +394,7 @@ pub struct DeviceLists { impl DeviceLists { /// 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() } }