Fixed some linter complaints

This commit is contained in:
2023-08-30 13:32:06 -06:00
parent d3748338dc
commit d4d3e14c78
+5 -3
View File
@@ -195,8 +195,10 @@ async fn simulation_loop(
) { ) {
let mut rng = StdRng::from_seed(OsRng.gen()); let mut rng = StdRng::from_seed(OsRng.gen());
loop { loop {
let mut metrics = DynamoDbSimulationMetrics::default(); let mut metrics = DynamoDbSimulationMetrics {
metrics.timestamp = Utc::now(); timestamp: Utc::now(),
..DynamoDbSimulationMetrics::default()
};
let simulation_time = time!(match { let simulation_time = time!(match {
if read_only { if read_only {
@@ -280,7 +282,7 @@ async fn scan_all_partition_keys(
let partition_keys = resp let partition_keys = resp
.items() .items()
.unwrap() .unwrap()
.into_iter() .iter()
.map(|attribute| { .map(|attribute| {
attribute attribute
.values() .values()