From f15c817c2d1fad288fe0f88d4e3995df4aa4a477 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 5 Nov 2016 10:54:17 -0700 Subject: Rustfmt --- openssl/src/bn.rs | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'openssl/src/bn.rs') diff --git a/openssl/src/bn.rs b/openssl/src/bn.rs index a3235c1f..fe3645d0 100644 --- a/openssl/src/bn.rs +++ b/openssl/src/bn.rs @@ -365,22 +365,12 @@ impl BigNumRef { /// * `bits`: Length of the number in bits. /// * `msb`: The desired properties of the number. /// * `odd`: If `true`, the generated number will be odd. - pub fn rand(&mut self, - bits: i32, - msb: MsbOption, - odd: bool) - -> Result<(), ErrorStack> { - unsafe { - cvt(ffi::BN_rand(self.as_ptr(), bits.into(), msb.0, odd as c_int)).map(|_| ()) - } + pub fn rand(&mut self, bits: i32, msb: MsbOption, odd: bool) -> Result<(), ErrorStack> { + unsafe { cvt(ffi::BN_rand(self.as_ptr(), bits.into(), msb.0, odd as c_int)).map(|_| ()) } } /// The cryptographically weak counterpart to `rand`. - pub fn pseudo_rand(&mut self, - bits: i32, - msb: MsbOption, - odd: bool) - -> Result<(), ErrorStack> { + pub fn pseudo_rand(&mut self, bits: i32, msb: MsbOption, odd: bool) -> Result<(), ErrorStack> { unsafe { cvt(ffi::BN_pseudo_rand(self.as_ptr(), bits.into(), msb.0, odd as c_int)).map(|_| ()) } -- cgit v1.2.3