Skip to content

Conversation

@LLFourn
Copy link
Collaborator

@LLFourn LLFourn commented Feb 12, 2024

Unfortunately there's no way to return a lifetime to something from a &mut self that doesn't extend the lifetime of the mutable borrow. So it's better not borrow at all here.

I think @evanlinjin tried to make this change some time ago but I NACK'd it. Now I understand why it's unavoidable. Sorry!

Unfortunately there's no way to return a lifetime to something from a
&mut self that doesn't extend the lifetime of the mutable borrow.
@notmandatory notmandatory added module-blockchain api A breaking API change labels Mar 18, 2024
@notmandatory notmandatory added this to the 1.0.0-alpha milestone Apr 22, 2024
@notmandatory
Copy link
Member

This needs a rebase but otherwise looks good to me.

Copy link
Contributor

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

@notmandatory
Copy link
Member

@LLFourn is it OK if someone else takes this over and rebases it?

@ValuedMammal
Copy link
Collaborator

I think it can be done in #1438

@notmandatory
Copy link
Member

Closing this PR as equivalent fixes are included in #1451. a5142de

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api A breaking API change module-blockchain

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants