Verified Commit f5cbcc6a authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix for compilation with stable rust

parent dbfc5cdb
#![no_std]
#![feature(min_const_generics)]
extern crate alloc;
use core::mem;
......@@ -59,4 +58,3 @@ mod tests {
assert_eq!(ENTRY_SIZE, 308);
}
}
......@@ -179,7 +179,7 @@ pub fn create(
//TODO: ensure file size matches
header.signature = sign::sign_detached(unsafe { &plain::as_bytes(&header)[64..] }, &secret_key).0;
header.signature = sign::sign_detached(unsafe { &plain::as_bytes(&header)[64..] }, &secret_key).to_bytes();
// Write archive header
archive_file.seek(SeekFrom::Start(0))
......@@ -271,4 +271,3 @@ pub fn verify(
}
Ok(())
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment