bump rust toolchain to 1.76.0 for gui + fix new clippy warnings introduced by 1.76.0

This commit is contained in:
pythcoiner 2024-03-20 11:41:26 +01:00
parent 2e63bf3069
commit 70058e6af0
5 changed files with 8 additions and 8 deletions

View File

@ -51,7 +51,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.75.0
toolchain: 1.76.0
components: rustfmt, clippy
override: true
- name: rustfmt

View File

@ -28,9 +28,9 @@ pub fn home_view<'a>(
balance: &'a bitcoin::Amount,
unconfirmed_balance: &'a bitcoin::Amount,
remaining_sequence: &Option<u32>,
expiring_coins: &Vec<bitcoin::OutPoint>,
expiring_coins: &[bitcoin::OutPoint],
pending_events: &'a [HistoryTransaction],
events: &'a Vec<HistoryTransaction>,
events: &'a [HistoryTransaction],
) -> Element<'a, Message> {
Column::new()
.push(h3("Balance"))
@ -88,7 +88,7 @@ pub fn home_view<'a>(
)
.push(
button::primary(Some(icon::arrow_repeat()), "Refresh coins").on_press(
Message::Menu(Menu::RefreshCoins(expiring_coins.clone())),
Message::Menu(Menu::RefreshCoins(expiring_coins.to_owned())),
),
),
)

View File

@ -33,7 +33,7 @@ use crate::{
pub fn spend_view<'a>(
cache: &'a Cache,
tx: &'a SpendTx,
spend_warnings: &'a Vec<String>,
spend_warnings: &'a [String],
saved: bool,
desc_info: &'a LianaPolicy,
key_aliases: &'a HashMap<Fingerprint, String>,

View File

@ -26,7 +26,7 @@ pub const HISTORY_EVENT_PAGE_SIZE: u64 = 20;
pub fn transactions_view<'a>(
cache: &'a Cache,
pending_txs: &'a [HistoryTransaction],
txs: &'a Vec<HistoryTransaction>,
txs: &'a [HistoryTransaction],
warning: Option<&'a Error>,
) -> Element<'a, Message> {
dashboard(

View File

@ -444,7 +444,7 @@ pub fn import_descriptor<'a>(
)
}
pub fn signer_xpubs(xpubs: &Vec<String>) -> Element<Message> {
pub fn signer_xpubs(xpubs: &[String]) -> Element<Message> {
Container::new(
Column::new()
.push(
@ -1710,7 +1710,7 @@ pub fn recover_mnemonic<'a>(
progress: (usize, usize),
words: &'a [(String, bool); 12],
current: usize,
suggestions: &'a Vec<String>,
suggestions: &'a [String],
recover: bool,
error: Option<&'a String>,
) -> Element<'a, Message> {