From 9a0715c6e842f07c56debd6a4805d9685e8fd0a3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 23 Aug 2023 12:47:42 +0100 Subject: [PATCH] ipt establisher API: pass a struct to new() (fmt) One of rustfmt's changes here is wrong. Whatever. --- crates/tor-hsservice/src/ipt_mgr.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/tor-hsservice/src/ipt_mgr.rs b/crates/tor-hsservice/src/ipt_mgr.rs index f856905cb..211fc07ac 100644 --- a/crates/tor-hsservice/src/ipt_mgr.rs +++ b/crates/tor-hsservice/src/ipt_mgr.rs @@ -317,7 +317,7 @@ impl IptRelay { // TODO HSS IntroPointId lacks a constructor and maybe should change anyway intro_pt_id: todo!(), target: self.relay.clone(), - ipt_sid_keypair: todo!(), // TODO HSS + ipt_sid_keypair: todo!(), // TODO HSS accepting_requests: todo!(), // TODO HSS }; let (establisher, mut watch_rx) = mockable.make_new_ipt(imm, params)?; @@ -770,11 +770,7 @@ impl Mockable for Real { imm: &Immutable, params: IptParameters, ) -> Result<(Self::IptEstablisher, watch::Receiver), FatalError> { - IptEstablisher::new( - imm.runtime.clone(), - params, - self.circ_pool.clone(), - ) + IptEstablisher::new(imm.runtime.clone(), params, self.circ_pool.clone()) } }