solana
solana copied to clipboard
SDK: refactor `Signer` and `Signers` traits
Problem
See #34983
Summary of Changes
- Remove
From
blanket impl forSigner
- add
?Sized
trait bound to blanket impl forSigner
forBox<dyn Signer>
- retain
Deref
blanket impl forSigner
- refactor
Signers
to blanket impl for all types where their references implsIntoIterator
yieldingSigner
refs
Fixes #34983
Sorry for the lateness on the review: this comes in at a great time, since we're planning on moving to 2.0 and removing old stuff anyway, so we should be able to accept the breaking change of removing the blanket From
impl.
The change looks good, and I'll be so happy to avoid having to write as_ref()
everywhere, it's been such an annoyance for a long time.
Can you rebase your branch to see what breaks downstream?
Can you rebase your branch to see what breaks downstream?
Just merged master into this branch. Building takes too long on my machine so I'm just using the CI checks to see what breaks haha
Just merged master into this branch. Building takes too long on my machine so I'm just using the CI checks to see what breaks haha
We much prefer rebases to merge commits.