Use unwrap_or_default

This commit is contained in:
Rodolphe Bréard 2024-03-23 11:44:42 +01:00
parent f975fd5e96
commit e2b2417b04

View file

@ -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()
};