Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clippy
  • Loading branch information
brenzi committed Dec 7, 2023
commit fd6915adac577445d54d7405691a5702fcb74837
2 changes: 1 addition & 1 deletion enclave-runtime/src/initialization/parentchain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

use crate::{
error::{Error, Result},
error::Result,
get_shard_birth_parentchain_header_internal,
initialization::{
global_components::{
Expand Down
2 changes: 1 addition & 1 deletion enclave-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ pub unsafe extern "C" fn get_shard_birth_header(
};
trace!("fetched shard birth header from state: {:?}", shard_birth);

let mut birth_slice = slice::from_raw_parts_mut(birth, birth_size as usize);
let birth_slice = slice::from_raw_parts_mut(birth, birth_size as usize);
if let Err(e) = write_slice_and_whitespace_pad(birth_slice, shard_birth.encode()) {
return Error::BufferError(e).into()
};
Expand Down