diff options
| author | Steven Fackler <[email protected]> | 2016-10-30 16:37:45 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-10-30 16:37:45 -0700 |
| commit | f75f82e466993848393c7a26ccb51dc31b4547fe (patch) | |
| tree | 3b859d04e3216052fa5ff3c4c753ce204a3c9703 /openssl/src/ec_key.rs | |
| parent | Remove out of date comment (diff) | |
| download | rust-openssl-f75f82e466993848393c7a26ccb51dc31b4547fe.tar.xz rust-openssl-f75f82e466993848393c7a26ccb51dc31b4547fe.zip | |
Rustfmt
Diffstat (limited to 'openssl/src/ec_key.rs')
| -rw-r--r-- | openssl/src/ec_key.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/openssl/src/ec_key.rs b/openssl/src/ec_key.rs index 5d634c5a..81b790aa 100644 --- a/openssl/src/ec_key.rs +++ b/openssl/src/ec_key.rs @@ -30,9 +30,7 @@ impl Drop for EcKey { impl EcKey { pub fn new_by_curve_name(nid: Nid) -> Result<EcKey, ErrorStack> { - unsafe { - cvt_p(ffi::EC_KEY_new_by_curve_name(nid.as_raw())).map(EcKey) - } + unsafe { cvt_p(ffi::EC_KEY_new_by_curve_name(nid.as_raw())).map(EcKey) } } pub unsafe fn from_ptr(ptr: *mut ffi::EC_KEY) -> EcKey { @@ -44,9 +42,7 @@ impl Deref for EcKey { type Target = EcKeyRef; fn deref(&self) -> &EcKeyRef { - unsafe { - EcKeyRef::from_ptr(self.0) - } + unsafe { EcKeyRef::from_ptr(self.0) } } } |