From 89549818b6eaf38b65f2f520aef1ca78a32fd963 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Thu, 21 Mar 2024 18:43:10 -0700 Subject: [PATCH] * unwrap_or(vec![]) -> unwrap_or_default() --- accounts-db/src/accounts_file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts-db/src/accounts_file.rs b/accounts-db/src/accounts_file.rs index 1e44880670b1aa..d8547398b7b206 100644 --- a/accounts-db/src/accounts_file.rs +++ b/accounts-db/src/accounts_file.rs @@ -214,7 +214,7 @@ impl AccountsFile { }; reader .accounts(IndexOffset(offset as u32)) - .unwrap_or(vec![]) + .unwrap_or_default() } } }