cargo format

This commit is contained in:
Dmitry Vagner 2022-09-21 20:18:18 -07:00
parent cfa0186517
commit 937955788f
2 changed files with 10 additions and 13 deletions

View File

@ -32,34 +32,31 @@ fn test_ripemd() -> Result<()> {
// let kernel = combined_kernel();
// let input: Vec<u32> = vec![
// 0x61, 0x62,
// 0x63, 0x64, 0x65, 0x66,
// 0x67, 0x68, 0x69, 0x6a,
// 0x6b, 0x6c, 0x6d, 0x6e,
// 0x6f, 0x70, 0x71, 0x72,
// 0x73, 0x74, 0x75, 0x76,
// 0x61, 0x62,
// 0x63, 0x64, 0x65, 0x66,
// 0x67, 0x68, 0x69, 0x6a,
// 0x6b, 0x6c, 0x6d, 0x6e,
// 0x6f, 0x70, 0x71, 0x72,
// 0x73, 0x74, 0x75, 0x76,
// 0x77, 0x78, 0x79, 0x7a,
// ];
// let mut stack_init:Vec<U256> = input.iter().map(|&x| U256::from(x as u32)).collect();
// stack_init.push(U256::from_str("0xdeadbeef").unwrap());
// let stack_result = run(
// &kernel.code,
// &kernel.code,
// kernel.global_labels["ripemd_alt"],
// stack_init,
// &kernel.prover_inputs
// )?;
// let result = stack_result.stack()[1];
// let actual = format!("{:X}", result);
// println!("{}", actual);
// println!("{}", actual);
// assert_eq!(expected, actual);
Ok(())
}
// use std::str::FromStr;
// use anyhow::Result;

View File

@ -37,7 +37,7 @@ pub(crate) enum Segment {
/// See also `StateTrieCheckpointPointer`.
StorageTrieCheckpointPointers = 14,
/// RipeMD storage
///
///
RipeMd = 15,
}
@ -83,7 +83,7 @@ impl Segment {
Segment::StorageTrieAddresses => "SEGMENT_STORAGE_TRIE_ADDRS",
Segment::StorageTriePointers => "SEGMENT_STORAGE_TRIE_PTRS",
Segment::StorageTrieCheckpointPointers => "SEGMENT_STORAGE_TRIE_CHECKPOINT_PTRS",
Segment::RipeMd => "SEGMENT_RIPEMD"
Segment::RipeMd => "SEGMENT_RIPEMD",
}
}