Skip to content

Commit

Permalink
v2.0: Add since field to deprecation note (backport of #1905) (#1910)
Browse files Browse the repository at this point in the history
Add since field to deprecation note (#1905)

Add  to deprecation note

(cherry picked from commit 70254b1)

Co-authored-by: Tyera <tyera@anza.xyz>
  • Loading branch information
mergify[bot] and CriesofCarrots authored Jun 28, 2024
1 parent a0934f5 commit 5a46b49
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 5a46b49

Please sign in to comment.