Bump MSRV to 1.56

This commit is contained in:
Alekos Filini
2022-05-03 12:41:22 +02:00
parent 6e8744d59d
commit cca69481eb
12 changed files with 35 additions and 31 deletions

View File

@@ -101,7 +101,7 @@ impl FromStr for FullyNodedExport {
}
fn remove_checksum(s: String) -> String {
s.splitn(2, '#').next().map(String::from).unwrap()
s.split_once('#').map(|(a, _)| String::from(a)).unwrap()
}
impl FullyNodedExport {

View File

@@ -1603,9 +1603,9 @@ where
pub fn descriptor_checksum(&self, keychain: KeychainKind) -> String {
self.get_descriptor_for_keychain(keychain)
.to_string()
.splitn(2, '#')
.next()
.split_once('#')
.unwrap()
.0
.to_string()
}
}

View File

@@ -479,6 +479,7 @@ pub struct SignOptions {
pub allow_all_sighashes: bool,
}
#[allow(clippy::derivable_impls)]
impl Default for SignOptions {
fn default() -> Self {
SignOptions {