Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
Deref
impl on RsaPrivateKey
with AsRef
The `RsaPrivateKey` type previously had a `Deref` impl providing access to the associated `RsaPublicKey`. `Deref` is intended for "smart pointer types", i.e. container types which manage a (typically generic) inner type in some way. This doesn't seem like one of those cases. `AsRef`, on the other hand, is for cheap reference conversions, which is exactly what's happening here, so it's a better fit and provides the same functionality (albeit explicitly rather than via deref coercion).
- Loading branch information