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());
loop {
let mut metrics = DynamoDbSimulationMetrics::default();
metrics.timestamp = Utc::now();
let mut metrics = DynamoDbSimulationMetrics {
timestamp: Utc::now(),
..DynamoDbSimulationMetrics::default()
};
let simulation_time = time!(match {
if read_only {
@@ -280,7 +282,7 @@ async fn scan_all_partition_keys(
let partition_keys = resp
.items()
.unwrap()
.into_iter()
.iter()
.map(|attribute| {
attribute
.values()