aboutsummaryrefslogtreecommitdiff
path: root/src/endpoint.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-21 12:04:09 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-21 12:04:09 +0100
commit706a3b4ac46edd3adc344ecb263cb5d2a4a057a3 (patch)
tree719d382e95256617df64d177cc5be0511dfe740a /src/endpoint.rs
parent3b8bff634198c5ae17ab16d5c85c30b3201ae593 (diff)
downloadnetapp-706a3b4ac46edd3adc344ecb263cb5d2a4a057a3.tar.gz
netapp-706a3b4ac46edd3adc344ecb263cb5d2a4a057a3.zip
Formatting & clippy
Diffstat (limited to 'src/endpoint.rs')
-rw-r--r--src/endpoint.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/endpoint.rs b/src/endpoint.rs
index b408241..bb5399c 100644
--- a/src/endpoint.rs
+++ b/src/endpoint.rs
@@ -1,6 +1,6 @@
+use std::borrow::Borrow;
use std::marker::PhantomData;
use std::sync::Arc;
-use std::borrow::Borrow;
use arc_swap::ArcSwapOption;
use async_trait::async_trait;
@@ -94,8 +94,10 @@ where
target: &NodeID,
req: B,
prio: RequestPriority,
- ) -> Result<<M as Message>::Response, Error>
- where B: Borrow<M> {
+ ) -> Result<<M as Message>::Response, Error>
+ where
+ B: Borrow<M>,
+ {
if *target == self.netapp.id {
match self.handler.load_full() {
None => Err(Error::NoHandler),