From 810a0d1558afa6179ee3aa260903d25426a65188 Mon Sep 17 00:00:00 2001 From: Joonas Bergius Date: Wed, 12 Jun 2024 16:11:24 -0500 Subject: [PATCH] chore: Address clippy lints for XKeys Signed-off-by: Joonas Bergius --- src/xkeys.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/xkeys.rs b/src/xkeys.rs index 3b8b9aa..cea42c0 100644 --- a/src/xkeys.rs +++ b/src/xkeys.rs @@ -203,11 +203,18 @@ impl XKey { } } +#[cfg(not(target_arch = "wasm32"))] +impl Default for XKey { + fn default() -> Self { + Self::new() + } +} + #[cfg(test)] mod tests { use super::*; use crate::error::ErrorKind; - const MESSAGE: &'static [u8] = b"this is super secret"; + const MESSAGE: &[u8] = b"this is super secret"; #[test] fn seed_encode_decode_round_trip() {