From 6475ef72e4c3565fc6df44f4798ad2bfcd03b958 Mon Sep 17 00:00:00 2001 From: Hansie Odendaal Date: Thu, 21 Sep 2023 12:00:22 +0200 Subject: [PATCH] cargo fmt --- base_layer/service_framework/src/reply_channel.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/base_layer/service_framework/src/reply_channel.rs b/base_layer/service_framework/src/reply_channel.rs index a56cadffe3..983fd0afe3 100644 --- a/base_layer/service_framework/src/reply_channel.rs +++ b/base_layer/service_framework/src/reply_channel.rs @@ -137,10 +137,7 @@ pub struct RequestContext { impl RequestContext { /// Create a new RequestContect pub fn new(request: TReq, reply_tx: oneshot::Sender) -> Self { - Self { - request, - reply_tx, - } + Self { request, reply_tx } } /// Return a reference to the request object. None is returned after take_request has @@ -152,10 +149,7 @@ impl RequestContext { /// Consume this object and return it's parts. Namely, the request object and /// the reply oneshot channel. pub fn split(self) -> (TReq, oneshot::Sender) { - ( - self.request, - self.reply_tx, - ) + (self.request, self.reply_tx) } /// Sends a reply to the caller