Fix no_std+alloc builds.

This commit is contained in:
Isis Lovecruft 2019-10-04 02:05:20 +00:00
parent 52ee801022
commit 1342e2a3a4
No known key found for this signature in database
GPG key ID: AB41313533E8E812
2 changed files with 3 additions and 1 deletions

View file

@ -93,7 +93,7 @@ pub fn verify_batch(
public_keys: &[PublicKey],
) -> Result<(), SignatureError>
{
const ASSERT_MESSAGE: &'static [u8] = b"The number of messages, signatures, and public keys must be equal.";
const ASSERT_MESSAGE: &'static str = "The number of messages, signatures, and public keys must be equal.";
assert!(signatures.len() == messages.len(), ASSERT_MESSAGE);
assert!(signatures.len() == public_keys.len(), ASSERT_MESSAGE);
assert!(public_keys.len() == messages.len(), ASSERT_MESSAGE);

View file

@ -255,6 +255,8 @@
#[macro_use]
extern crate std;
#[cfg(all(feature = "alloc", not(feature = "std")))]
extern crate alloc;
extern crate clear_on_drop;
extern crate curve25519_dalek;
extern crate failure;