From 548bf6749ac5144fa85eb1de5db5cf41e0e0ddbc Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Wed, 4 Jan 2023 14:38:16 -0600 Subject: [PATCH] remove unnecessary to_vec() (#29516) --- runtime/src/accounts_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 28d8006dd84e9b..6694341593b41c 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -17198,7 +17198,7 @@ pub mod tests { ); }); - let storages = db.get_storages_for_slot(slot5).unwrap().to_vec(); + let storages = db.get_storages_for_slot(slot5).unwrap(); let mut stored_accounts = Vec::default(); assert_eq!(storages.len(), 1); let shrink_collect = db.shrink_collect(