From 57177a490c88bf38854291fc11b519b31ba8ac02 Mon Sep 17 00:00:00 2001 From: fluidvanadium Date: Tue, 20 Feb 2024 03:54:04 +0000 Subject: [PATCH] added mut to ZingoConfigBuilder methods --- zingoconfig/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zingoconfig/src/lib.rs b/zingoconfig/src/lib.rs index 7fb9f3b70..f85820eeb 100644 --- a/zingoconfig/src/lib.rs +++ b/zingoconfig/src/lib.rs @@ -123,7 +123,7 @@ impl ZingoConfigBuilder { /// use http::Uri; /// assert_eq!(ZingoConfigBuilder::default().set_lightwalletd_uri(("https://zcash.mysideoftheweb.com:19067").parse::().unwrap()).lightwalletd_uri.clone().unwrap(), "https://zcash.mysideoftheweb.com:19067"); /// ``` - pub fn set_lightwalletd_uri(&mut self, lightwalletd_uri: http::Uri) -> &Self { + pub fn set_lightwalletd_uri(&mut self, lightwalletd_uri: http::Uri) -> &mut Self { self.lightwalletd_uri = Some(lightwalletd_uri); self } @@ -137,7 +137,7 @@ impl ZingoConfigBuilder { /// use zingoconfig::ChainType::Testnet; /// assert_eq!(ZingoConfigBuilder::default().set_chain(Testnet).create().chain, Testnet); /// ``` - pub fn set_chain(&mut self, chain: ChainType) -> &Self { + pub fn set_chain(&mut self, chain: ChainType) -> &mut Self { self.chain = chain; self } @@ -150,7 +150,7 @@ impl ZingoConfigBuilder { /// let config = ZingoConfigBuilder::default().set_wallet_dir(dir.clone()).create(); /// assert_eq!(config.wallet_dir.clone().unwrap(), dir); /// ``` - pub fn set_wallet_dir(&mut self, dir: PathBuf) -> &Self { + pub fn set_wallet_dir(&mut self, dir: PathBuf) -> &mut Self { self.wallet_dir = Some(dir); self }