diff --git a/radix-engine-profiling/src/rocks_db_metrics/mod.rs b/radix-engine-profiling/src/rocks_db_metrics/mod.rs index 2f7bc646cf6..057bb26044b 100644 --- a/radix-engine-profiling/src/rocks_db_metrics/mod.rs +++ b/radix-engine-profiling/src/rocks_db_metrics/mod.rs @@ -128,7 +128,7 @@ impl CommittableSubstateDatab let mut delete_value_len: usize = 0; for (node_key, node_updates) in &database_updates.node_updates { for (partition_num, partition_updates) in &node_updates.partition_updates { - let PartitionDatabaseUpdates::Delta {substate_updates} = partition_updates else { + let PartitionDatabaseUpdates::Delta { substate_updates } = partition_updates else { panic!("Deletes not supported while profiling") }; for db_update in substate_updates { @@ -183,7 +183,7 @@ impl CommittableSubstateDatab // - per size - test invokes only database_update per commit (that is why we can use 1st item only here) // - per partition - test invokes commits for particular partition size, so value length is not important here (still it is safe to use 1st item only) let partition_updates = &database_updates.node_updates[0].partition_updates[0]; - let PartitionDatabaseUpdates::Delta {substate_updates} = partition_updates else { + let PartitionDatabaseUpdates::Delta { substate_updates } = partition_updates else { panic!("Deletes not supported while profiling") }; let db_update = &substate_updates[0]; diff --git a/radix-engine-tests/build.rs b/radix-engine-tests/build.rs index 7fae885133c..23ec0a84208 100644 --- a/radix-engine-tests/build.rs +++ b/radix-engine-tests/build.rs @@ -16,8 +16,8 @@ fn main() { let mut packages = HashMap::new(); for entry in walkdir::WalkDir::new(blueprints_dir) { let Ok(entry) = entry else { - continue; - }; + continue; + }; let path = entry.path(); if !path .file_name() @@ -36,8 +36,8 @@ fn main() { } let Some(Package { name, .. }) = manifest.package else { - continue; - }; + continue; + }; let (code, definition) = scrypto_unit::Compile::compile_with_env_vars( path.parent().unwrap(), diff --git a/sbor/src/payload_validation/payload_validator.rs b/sbor/src/payload_validation/payload_validator.rs index dd2019a7de0..d6b5743b152 100644 --- a/sbor/src/payload_validation/payload_validator.rs +++ b/sbor/src/payload_validation/payload_validator.rs @@ -571,7 +571,7 @@ mod tests { schema.v1(), type_id, &mut (), - 64 + 64, ) else { panic!("Validation did not error with too short a payload"); }; @@ -606,7 +606,7 @@ mod tests { schema.v1(), type_id, &mut (), - 64 + 64, ) else { panic!("Validation did not error with too short a payload"); };