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
  • Loading branch information
CriesofCarrots authored and samkim-crypto committed Jul 31, 2024
1 parent 851b1de commit 164f417
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
Expand Up @@ -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,
Expand Down

0 comments on commit 164f417

Please sign in to comment.