diff --git a/runtime/src/accounts_file.rs b/runtime/src/accounts_file.rs index e14483a719..7f82f6ff04 100644 --- a/runtime/src/accounts_file.rs +++ b/runtime/src/accounts_file.rs @@ -74,7 +74,7 @@ impl AccountsFile { &self, offset: usize, owners: &[&Pubkey], - ) -> Result<(), MatchAccountOwnerError> { + ) -> Result { match self { Self::AppendVec(av) => av.account_matches_owners(offset, owners), }