From 5a46b490c7c88464d90b8d2e2e736d1b364f3ffc Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 28 Jun 2024 16:26:19 +0000 Subject: [PATCH] v2.0: Add since field to deprecation note (backport of #1905) (#1910) Add since field to deprecation note (#1905) Add to deprecation note (cherry picked from commit 70254b175ebb939c728010aa50e26d3e7e404c77) Co-authored-by: Tyera --- rpc-client-api/src/filter.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpc-client-api/src/filter.rs b/rpc-client-api/src/filter.rs index 368d7ce7d7f855..9af8cc0784c1ff 100644 --- a/rpc-client-api/src/filter.rs +++ b/rpc-client-api/src/filter.rs @@ -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,