From 66793fc84b378b899e63b8fcfb2a25f0c6ec8b60 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 16:15:46 +0000 Subject: [PATCH] Format Rust code using rustfmt --- src/state.rs | 12 +++++------- src/vfs.rs | 1 - 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/state.rs b/src/state.rs index 76afc75e..c8897045 100644 --- a/src/state.rs +++ b/src/state.rs @@ -180,12 +180,10 @@ async fn handle_request( StateAction::DeleteState(process_id) => { let key = process_id.to_hash(); match db.delete(key) { - Ok(_) => { - ( - serde_json::to_vec(&StateResponse::DeleteState).unwrap(), - None, - ) - } + Ok(_) => ( + serde_json::to_vec(&StateResponse::DeleteState).unwrap(), + None, + ), Err(e) => { println!("delete state error: {:?}", e); return Err(StateError::RocksDBError { @@ -510,7 +508,7 @@ async fn bootstrap( continue; } } - + if let Some(cap) = capability { if let Some(process) = process_map.get_mut(&to_process.unwrap()) { process.capabilities.insert(cap); diff --git a/src/vfs.rs b/src/vfs.rs index 347d2492..2041018b 100644 --- a/src/vfs.rs +++ b/src/vfs.rs @@ -136,7 +136,6 @@ async fn handle_request( let drive = format!("/{}/{}", package_id, drive); let path = PathBuf::from(request.path.clone()); - if km.source.process != *KERNEL_PROCESS_ID { check_caps( our_node.clone(),