Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2023-12-15 16:15:46 +00:00 committed by GitHub
parent cbac125bf8
commit 66793fc84b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 8 deletions

View File

@ -180,12 +180,10 @@ async fn handle_request(
StateAction::DeleteState(process_id) => { StateAction::DeleteState(process_id) => {
let key = process_id.to_hash(); let key = process_id.to_hash();
match db.delete(key) { match db.delete(key) {
Ok(_) => { Ok(_) => (
( serde_json::to_vec(&StateResponse::DeleteState).unwrap(),
serde_json::to_vec(&StateResponse::DeleteState).unwrap(), None,
None, ),
)
}
Err(e) => { Err(e) => {
println!("delete state error: {:?}", e); println!("delete state error: {:?}", e);
return Err(StateError::RocksDBError { return Err(StateError::RocksDBError {

View File

@ -136,7 +136,6 @@ async fn handle_request(
let drive = format!("/{}/{}", package_id, drive); let drive = format!("/{}/{}", package_id, drive);
let path = PathBuf::from(request.path.clone()); let path = PathBuf::from(request.path.clone());
if km.source.process != *KERNEL_PROCESS_ID { if km.source.process != *KERNEL_PROCESS_ID {
check_caps( check_caps(
our_node.clone(), our_node.clone(),