Skip to content

Commit 05cf3dd

Browse files
author
Adrian Cruceru
committed
Update unit tests
1 parent 21dba1a commit 05cf3dd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mbedtls/src/ssl/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl Drop for NullTerminatedStrList {
138138
for i in self.c.iter() {
139139
unsafe {
140140
if !(*i).is_null() {
141-
::std::ffi::CString::from_raw(*i);
141+
let _ = ::std::ffi::CString::from_raw(*i);
142142
}
143143
}
144144
}

mbedtls/tests/ssl_conf_ca_cb.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ mod test {
6060
use crate::support::keys;
6161
use mbedtls::x509::{Certificate};
6262
use mbedtls::Error;
63-
63+
use mbedtls::alloc::{List as MbedtlsList, Box as MbedtlsBox};
64+
6465
// This callback should accept any valid self-signed certificate
6566
fn self_signed_ca_callback(child: &MbedtlsList<Certificate>) -> TlsResult<MbedtlsList<Certificate>> {
6667
Ok(child.clone())

0 commit comments

Comments
 (0)