Skip to content

Commit 1d51e80

Browse files
authored
Deprecate to_account_shared_data (#407)
Deprecate to_account_shared_data
1 parent d8058bc commit 1d51e80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

account/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ pub trait ReadableAccount: Sized {
226226
fn owner(&self) -> &Pubkey;
227227
fn executable(&self) -> bool;
228228
fn rent_epoch(&self) -> Epoch;
229+
#[deprecated(since = "3.2.0")]
229230
fn to_account_shared_data(&self) -> AccountSharedData {
230231
AccountSharedData::create(
231232
self.lamports(),
@@ -918,6 +919,7 @@ pub mod tests {
918919
}
919920

920921
#[test]
922+
#[allow(deprecated)]
921923
fn test_to_account_shared_data() {
922924
let key = Pubkey::new_unique();
923925
let (account1, account2) = make_two_accounts(&key);

0 commit comments

Comments
 (0)