From 7d7228c356cfe9f4f0c8a37135f47a062e335b08 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Fri, 14 Jan 2022 11:53:24 -0600 Subject: [PATCH] cleanup assert (#22495) --- 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 5af1586eb2..398052cb32 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -3609,7 +3609,7 @@ impl AccountsDb { // cleaned yet. That means this must be rpc access and not replay/banking at the // very least. Note that purge shouldn't occur even for RPC as caller must hold all // of ancestor slots.. - assert!(load_hint == LoadHint::Unspecified); + assert_eq!(load_hint, LoadHint::Unspecified); // Everything being assert!()-ed, let's panic!() here as it's an error condition // after all....