We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since 0.29, Account::try_from signature changed from
Account::try_from
fn try_from(info: &AccountInfo<'a>) -> Result<Account<'a, T>> {
to
fn try_from(info: &'a AccountInfo<'a>) -> Result<Account<'a, T>> {
If I have an owned AccountInfo<'a> variable, I cannot borrow it again with lifetime 'a because the current scope is always smaller, for example:
AccountInfo<'a>
'a
fn foo<'a>(info: AccountInfo<'a>) { Account::try_from(&info); // not possible because reference cannot live as long as 'a }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Since 0.29,
Account::try_from
signature changed fromto
If I have an owned
AccountInfo<'a>
variable, I cannot borrow it again with lifetime'a
because the current scope is always smaller, for example:The text was updated successfully, but these errors were encountered: