diff --git a/src/components/pull.rs b/src/components/pull.rs index 3bc60881..1c943253 100644 --- a/src/components/pull.rs +++ b/src/components/pull.rs @@ -104,7 +104,7 @@ impl PullComponent { } /// - pub fn any_work_pending(&self) -> bool { + pub const fn any_work_pending(&self) -> bool { self.pending } diff --git a/src/components/push.rs b/src/components/push.rs index 6ff0f77f..168d8f15 100644 --- a/src/components/push.rs +++ b/src/components/push.rs @@ -145,7 +145,7 @@ impl PushComponent { } /// - pub fn any_work_pending(&self) -> bool { + pub const fn any_work_pending(&self) -> bool { self.pending }