Update to 2024 edition (#2001)

* Update to 2024 edition

* Update to 2024 edition; fmt, use<> and remove refs

* async functions
This commit is contained in:
James Wilson
2025-05-09 16:12:18 +01:00
committed by GitHub
parent 98c1d153b6
commit 23c62f3d5d
120 changed files with 399 additions and 322 deletions
+2 -6
View File
@@ -65,7 +65,7 @@ impl DeriveJunction {
/// Get a reference to the inner junction id.
pub fn inner(&self) -> &[u8; JUNCTION_ID_LEN] {
match self {
DeriveJunction::Hard(ref c) | DeriveJunction::Soft(ref c) => c,
DeriveJunction::Hard(c) | DeriveJunction::Soft(c) => c,
}
}
@@ -97,10 +97,6 @@ impl<T: AsRef<str>> From<T> for DeriveJunction {
DeriveJunction::soft(code)
};
if hard {
res.harden()
} else {
res
}
if hard { res.harden() } else { res }
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ mod secret_uri;
mod seed_from_entropy;
pub use derive_junction::DeriveJunction;
pub use secret_uri::{SecretUri, SecretUriError, DEV_PHRASE};
pub use secret_uri::{DEV_PHRASE, SecretUri, SecretUriError};
#[cfg(any(feature = "sr25519", feature = "ecdsa"))]
pub use seed_from_entropy::seed_from_entropy;