Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2023-12-26 18:31:55 +00:00 committed by GitHub
parent a13f116698
commit 7eb32e55ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -228,9 +228,11 @@ async fn handle_request(
error: e.to_string(), error: e.to_string(),
})?; })?;
checkpoint.create_checkpoint(&checkpoint_dir).map_err(|e| StateError::RocksDBError { checkpoint.create_checkpoint(&checkpoint_dir).map_err(|e| {
StateError::RocksDBError {
action: "BackupCheckpointCreate".into(), action: "BackupCheckpointCreate".into(),
error: e.to_string(), error: e.to_string(),
}
})?; })?;
(serde_json::to_vec(&StateResponse::Backup).unwrap(), None) (serde_json::to_vec(&StateResponse::Backup).unwrap(), None)