From 7a70c3a6e046749f2b2b151765783ceff69ddf1d Mon Sep 17 00:00:00 2001 From: Mathieu Dutour Sikiric Date: Wed, 3 Apr 2024 09:30:50 +0200 Subject: [PATCH] Address compilation warnings. --- ipc/src/select_with_weak.rs | 2 +- server-utils/src/reactor.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ipc/src/select_with_weak.rs b/ipc/src/select_with_weak.rs index 43c90b783..3e553f190 100644 --- a/ipc/src/select_with_weak.rs +++ b/ipc/src/select_with_weak.rs @@ -60,7 +60,7 @@ where type Item = S1::Item; fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { - let mut this = Pin::into_inner(self); + let this = Pin::into_inner(self); let mut checked_strong = false; loop { if this.use_strong { diff --git a/server-utils/src/reactor.rs b/server-utils/src/reactor.rs index 041328528..08c3aed56 100644 --- a/server-utils/src/reactor.rs +++ b/server-utils/src/reactor.rs @@ -75,7 +75,7 @@ impl Executor { /// A handle to running event loop. Dropping the handle will cause event loop to finish. #[derive(Debug)] pub struct RpcEventLoop { - executor: TaskExecutor, + _executor: TaskExecutor, close: Option>, runtime: Option, } @@ -112,7 +112,7 @@ impl RpcEventLoop { }); Ok(RpcEventLoop { - executor, + _executor: executor, close: Some(stop), runtime: Some(runtime), })