diff options
| author | Valerii Hiora <[email protected]> | 2014-09-28 07:09:57 +0300 |
|---|---|---|
| committer | Valerii Hiora <[email protected]> | 2014-09-28 07:18:45 +0300 |
| commit | 3f413e9354238919bce6dc87e3415919f301d487 (patch) | |
| tree | c0b446d704cc6f220e7535ec49d6ec37406ea83e /src/macros.rs | |
| parent | Certificate/pkey generation & PEM export (diff) | |
| download | rust-openssl-3f413e9354238919bce6dc87e3415919f301d487.tar.xz rust-openssl-3f413e9354238919bce6dc87e3415919f301d487.zip | |
Addressed review comments
- fixed invalid file permissions
- removed redundand mem::transmute
- removed outdated FIXME's
- removed redundand temporary variable
- removed macro_export for internal macros
Diffstat (limited to 'src/macros.rs')
| -rw-r--r--[-rwxr-xr-x] | src/macros.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/macros.rs b/src/macros.rs index b11f9dad..061381f2 100755..100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,6 +1,5 @@ #![macro_escape] -#[macro_export] macro_rules! try_ssl_stream { ($e:expr) => ( match $e { @@ -11,7 +10,6 @@ macro_rules! try_ssl_stream { } /// Shortcut return with SSL error if something went wrong -#[macro_export] macro_rules! try_ssl_if { ($e:expr) => ( if $e { @@ -22,13 +20,11 @@ macro_rules! try_ssl_if { /// Shortcut return with SSL error if last error result is 0 /// (default) -#[macro_export] macro_rules! try_ssl{ ($e:expr) => (try_ssl_if!($e == 0)) } /// Shortcut return with SSL if got a null result -#[macro_export] macro_rules! try_ssl_null{ ($e:expr) => (try_ssl_if!($e == ptr::null_mut())) } @@ -42,7 +38,6 @@ macro_rules! try_ssl_null{ /// let _ = try!(something) /// Ok(()) /// ``` -#[macro_export] macro_rules! lift_ssl_if{ ($e:expr) => ( { if $e { @@ -55,7 +50,6 @@ macro_rules! lift_ssl_if{ /// Lifts current SSL error code into Result<(), Error> /// if SSL returned 0 (default error indication) -#[macro_export] macro_rules! lift_ssl { ($e:expr) => (lift_ssl_if!($e == 0)) } |