Skip to content

Commit

Permalink
Add since field to deprecation note (anza-xyz#1905)
Browse files Browse the repository at this point in the history
Add  to deprecation note
CriesofCarrots authored Jun 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3d3faf5 commit 70254b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rpc-client-api/src/filter.rs
Original file line number Diff line number Diff line change
@@ -79,7 +79,10 @@ impl RpcFilterType {
}
}

#[deprecated = "Use solana_rpc::filter::filter_allows instead"]
#[deprecated(
since = "2.0.0",
note = "Use solana_rpc::filter::filter_allows instead"
)]
pub fn allows(&self, account: &AccountSharedData) -> bool {
match self {
RpcFilterType::DataSize(size) => account.data().len() as u64 == *size,

0 comments on commit 70254b1

Please sign in to comment.