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/string.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/string.rs')
-rw-r--r-- | openssl/src/string.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/string.rs b/openssl/src/string.rs index 9796500a..f20e8434 100644 --- a/openssl/src/string.rs +++ b/openssl/src/string.rs @@ -7,7 +7,7 @@ use std::fmt; use std::ops::Deref; use std::str; -use stack::Stackable; +use crate::stack::Stackable; foreign_type_and_impl_send_sync! { type CType = c_char; @@ -87,7 +87,7 @@ unsafe fn free(buf: *mut c_char) { #[cfg(ossl110)] unsafe fn free(buf: *mut c_char) { - ::ffi::CRYPTO_free( + ffi::CRYPTO_free( buf as *mut c_void, concat!(file!(), "\0").as_ptr() as *const c_char, line!() as ::libc::c_int, |