From 7de5265d5dd011e0348cb1ca50bb31b783a3ad0d Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Tue, 2 Mar 2021 00:21:16 +0100 Subject: [PATCH] clippy fixes --- src/components/pull.rs | 2 +- src/components/push.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }