From 6062cd5a41992a307c412088b5068f08b32cd389 Mon Sep 17 00:00:00 2001 From: Kevin Lewi Date: Thu, 9 Nov 2023 11:14:16 -0800 Subject: [PATCH] [v1] Re-export curve25519-dalek --- src/lib.rs | 1 + src/serialization/tests.rs | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index a04a725c..f21b8f20 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -759,6 +759,7 @@ mod tests; // Exports +pub use curve25519_dalek; pub use rand; pub use crate::messages::{ diff --git a/src/serialization/tests.rs b/src/serialization/tests.rs index 0477420e..5383c7e7 100644 --- a/src/serialization/tests.rs +++ b/src/serialization/tests.rs @@ -410,52 +410,52 @@ fn test_i2osp_os2ip(bytes in vec(any::(), 0..core::mem::size_of::())) #[test] fn test_nocrash_registration_request(bytes in vec(any::(), 0..200)) { - RegistrationRequest::::deserialize(&bytes[..]).map_or(true, |_| true); + let _ =RegistrationRequest::::deserialize(&bytes[..]).map_or(true, |_| true); } #[test] fn test_nocrash_registration_response(bytes in vec(any::(), 0..200)) { - RegistrationResponse::::deserialize(&bytes[..]).map_or(true, |_| true); + let _ =RegistrationResponse::::deserialize(&bytes[..]).map_or(true, |_| true); } #[test] fn test_nocrash_registration_upload(bytes in vec(any::(), 0..200)) { - RegistrationUpload::::deserialize(&bytes[..]).map_or(true, |_| true); + let _ =RegistrationUpload::::deserialize(&bytes[..]).map_or(true, |_| true); } #[test] fn test_nocrash_credential_request(bytes in vec(any::(), 0..500)) { - CredentialRequest::::deserialize(&bytes[..]).map_or(true, |_| true); + let _ =CredentialRequest::::deserialize(&bytes[..]).map_or(true, |_| true); } #[test] fn test_nocrash_credential_response(bytes in vec(any::(), 0..500)) { - CredentialResponse::::deserialize(&bytes[..]).map_or(true, |_| true); + let _ =CredentialResponse::::deserialize(&bytes[..]).map_or(true, |_| true); } #[test] fn test_nocrash_credential_finalization(bytes in vec(any::(), 0..500)) { - CredentialFinalization::::deserialize(&bytes[..]).map_or(true, |_| true); + let _ =CredentialFinalization::::deserialize(&bytes[..]).map_or(true, |_| true); } #[test] fn test_nocrash_client_registration(bytes in vec(any::(), 0..700)) { - ClientRegistration::::deserialize(&bytes[..]).map_or(true, |_| true); + let _ =ClientRegistration::::deserialize(&bytes[..]).map_or(true, |_| true); } #[test] fn test_nocrash_server_registration(bytes in vec(any::(), 0..700)) { - ServerRegistration::::deserialize(&bytes[..]).map_or(true, |_| true); + let _ =ServerRegistration::::deserialize(&bytes[..]).map_or(true, |_| true); } #[test] fn test_nocrash_client_login(bytes in vec(any::(), 0..700)) { - ClientLogin::::deserialize(&bytes[..]).map_or(true, |_| true); + let _ =ClientLogin::::deserialize(&bytes[..]).map_or(true, |_| true); } #[test] fn test_nocrash_server_login(bytes in vec(any::(), 0..700)) { - ServerLogin::::deserialize(&bytes[..]).map_or(true, |_| true); + let _ =ServerLogin::::deserialize(&bytes[..]).map_or(true, |_| true); } }