diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cccad55d..d4e5a32c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions-rs/toolchain@v1 with: - toolchain: 1.66.0 + toolchain: 1.67.1 components: rustfmt, clippy override: true - name: rustfmt diff --git a/gui/src/app/state/mod.rs b/gui/src/app/state/mod.rs index a6fc78dc..1d23f01b 100644 --- a/gui/src/app/state/mod.rs +++ b/gui/src/app/state/mod.rs @@ -172,7 +172,7 @@ impl State for Home { Message::View(view::Message::Next) => { if let Some(last) = self.events.last() { let daemon = daemon.clone(); - let last_event_date = last.time.unwrap() as u32; + let last_event_date = last.time.unwrap(); return Command::perform( async move { let mut limit = view::home::HISTORY_EVENT_PAGE_SIZE; @@ -284,7 +284,7 @@ impl State for ReceivePanel { match res { Ok(address) => { self.warning = None; - self.qr_code = Some(qr_code::State::new(&address.to_qr_uri()).unwrap()); + self.qr_code = Some(qr_code::State::new(address.to_qr_uri()).unwrap()); self.address = Some(address); } Err(e) => self.warning = Some(e), diff --git a/gui/src/daemon/client/mod.rs b/gui/src/daemon/client/mod.rs index 80605201..4f27777c 100644 --- a/gui/src/daemon/client/mod.rs +++ b/gui/src/daemon/client/mod.rs @@ -96,7 +96,7 @@ impl Daemon for Lianad { } fn update_spend_tx(&self, psbt: &Psbt) -> Result<(), DaemonError> { - let spend_tx = base64::encode(&consensus::serialize(psbt)); + let spend_tx = base64::encode(consensus::serialize(psbt)); let _res: serde_json::value::Value = self.call("updatespend", Some(vec![spend_tx]))?; Ok(()) } diff --git a/src/bitcoin/d/mod.rs b/src/bitcoin/d/mod.rs index 311fbb2b..27494502 100644 --- a/src/bitcoin/d/mod.rs +++ b/src/bitcoin/d/mod.rs @@ -343,11 +343,11 @@ impl BitcoinD { } } - fn make_request_inner<'a, 'b>( + fn make_request_inner( &self, client: &Client, - method: &'a str, - params: &'b [Box], + method: &str, + params: &[Box], retry: bool, ) -> Result { let req = client.build_request(method, params); @@ -358,11 +358,11 @@ impl BitcoinD { } } - fn make_request<'a, 'b>( + fn make_request( &self, client: &Client, - method: &'a str, - params: &'b [Box], + method: &str, + params: &[Box], ) -> Result { self.make_request_inner(client, method, params, true) }