From e2b2417b04e5d0442d8ee18e057018c8daf04523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sat, 23 Mar 2024 11:44:42 +0100 Subject: [PATCH] Use unwrap_or_default --- src/address.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/address.rs b/src/address.rs index 48ed1bc..a0174f2 100644 --- a/src/address.rs +++ b/src/address.rs @@ -34,7 +34,7 @@ impl CodedAddress { let code = if parts.len() >= 3 { BASE32_NOPAD .decode(parts[2].to_uppercase().as_bytes()) - .unwrap_or(Vec::new()) + .unwrap_or_default() } else { Vec::new() };