diff options
| author | Steven Fackler <[email protected]> | 2017-11-21 08:51:37 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-11-21 08:51:37 -0800 |
| commit | de987f20c8ac82d419a0647ca2970331f1ff640e (patch) | |
| tree | bd7981060fbcb8fdcc91b273361b87907d7e3bbf /openssl/src/bn.rs | |
| parent | Merge pull request #778 from nox/foreign-types (diff) | |
| download | rust-openssl-de987f20c8ac82d419a0647ca2970331f1ff640e.tar.xz rust-openssl-de987f20c8ac82d419a0647ca2970331f1ff640e.zip | |
Revert "Update foreign-types to 0.3"
Diffstat (limited to 'openssl/src/bn.rs')
| -rw-r--r-- | openssl/src/bn.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openssl/src/bn.rs b/openssl/src/bn.rs index 82ec38b6..fc6e0bb8 100644 --- a/openssl/src/bn.rs +++ b/openssl/src/bn.rs @@ -1090,6 +1090,12 @@ impl BigNum { } } +impl AsRef<BigNumRef> for BigNum { + fn as_ref(&self) -> &BigNumRef { + self.deref() + } +} + impl fmt::Debug for BigNumRef { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self.to_dec_str() { |