diff options
author | Jonas Platte <jplatte+git@posteo.de> | 2020-12-31 19:56:30 +0100 |
---|---|---|
committer | Jonas Platte <jplatte+git@posteo.de> | 2021-01-01 04:11:43 +0100 |
commit | 3d2ac91667be6fcb36961de3a9744ebb2914f044 (patch) | |
tree | a9ab8f1a1bdf3b408621e6dce386cc255fe3e82e /openssl/src/dh.rs | |
parent | d68077d2d581fd11b19ae433703dd0106f5aa0c7 (diff) | |
download | rust-openssl-3d2ac91667be6fcb36961de3a9744ebb2914f044.zip |
Use crate in imports in the openssl crate
This was mostly automated using `cargo fix --edition`, except imports of
openssl_sys (renamed to ffi) were converted to crate::ffi, which was
reverted.
The same thing is not done for the openssl-sys crate because this breaks
ctest (used in systest to verify the -sys crate), see
https://github.com/gnzlbg/ctest/issues/70
Diffstat (limited to 'openssl/src/dh.rs')
-rw-r--r-- | openssl/src/dh.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/openssl/src/dh.rs b/openssl/src/dh.rs index 111795d5..11ea99f8 100644 --- a/openssl/src/dh.rs +++ b/openssl/src/dh.rs @@ -1,12 +1,12 @@ -use error::ErrorStack; +use crate::error::ErrorStack; use ffi; use foreign_types::{ForeignType, ForeignTypeRef}; use std::mem; use std::ptr; -use bn::{BigNum, BigNumRef}; -use pkey::{HasParams, HasPrivate, HasPublic, Params, Private}; -use {cvt, cvt_p}; +use crate::bn::{BigNum, BigNumRef}; +use crate::pkey::{HasParams, HasPrivate, HasPublic, Params, Private}; +use crate::{cvt, cvt_p}; generic_foreign_type_and_impl_send_sync! { type CType = ffi::DH; @@ -297,9 +297,9 @@ cfg_if! { #[cfg(test)] mod tests { - use bn::BigNum; - use dh::Dh; - use ssl::{SslContext, SslMethod}; + use crate::bn::BigNum; + use crate::dh::Dh; + use crate::ssl::{SslContext, SslMethod}; #[test] #[cfg(ossl102)] |