Skip to content

Commit

Permalink
Fix formatting for Rust stable
Browse files Browse the repository at this point in the history
  • Loading branch information
lrubasze committed Oct 17, 2023
1 parent 4acc9bc commit 08e7e7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions radix-engine-profiling/src/rocks_db_metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl<S: SubstateDatabase + CommittableSubstateDatabase> 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 {
Expand Down Expand Up @@ -183,7 +183,7 @@ impl<S: SubstateDatabase + CommittableSubstateDatabase> 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];
Expand Down
8 changes: 4 additions & 4 deletions radix-engine-tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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(),
Expand Down
4 changes: 2 additions & 2 deletions sbor/src/payload_validation/payload_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ mod tests {
schema.v1(),
type_id,
&mut (),
64
64,
) else {
panic!("Validation did not error with too short a payload");
};
Expand Down Expand Up @@ -606,7 +606,7 @@ mod tests {
schema.v1(),
type_id,
&mut (),
64
64,
) else {
panic!("Validation did not error with too short a payload");
};
Expand Down

0 comments on commit 08e7e7e

Please sign in to comment.