Skip to content

Commit

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

Add since field to deprecation note (anza-xyz#1905)

Add  to deprecation note

(cherry picked from commit 70254b1)

Co-authored-by: Tyera <[email protected]>
  • Loading branch information
2 people authored and neutrinoks committed Jul 17, 2024
1 parent ed3fc93 commit 3524730
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 3524730

Please sign in to comment.