diff options
Diffstat (limited to 'src/endpoint.rs')
-rw-r--r-- | src/endpoint.rs | 8 |
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), |