mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-20 07:01:40 +03:00
Format Rust code using rustfmt
This commit is contained in:
parent
cbac125bf8
commit
66793fc84b
@ -180,12 +180,10 @@ async fn handle_request(
|
||||
StateAction::DeleteState(process_id) => {
|
||||
let key = process_id.to_hash();
|
||||
match db.delete(key) {
|
||||
Ok(_) => {
|
||||
(
|
||||
Ok(_) => (
|
||||
serde_json::to_vec(&StateResponse::DeleteState).unwrap(),
|
||||
None,
|
||||
)
|
||||
}
|
||||
),
|
||||
Err(e) => {
|
||||
println!("delete state error: {:?}", e);
|
||||
return Err(StateError::RocksDBError {
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user