Use unwrap_or_default
This commit is contained in:
parent
f975fd5e96
commit
e2b2417b04
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue