Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2023-10-10 00:02:47 +00:00 committed by GitHub
parent 6eb00b7fca
commit 512f9be34a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -628,7 +628,11 @@ async fn match_request(
let Some(mut parent_entry) = vfs.key_to_entry.remove(&parent_key) else { let Some(mut parent_entry) = vfs.key_to_entry.remove(&parent_key) else {
panic!(""); panic!("");
}; };
let EntryType::Dir { children: ref mut parent_children, .. } = parent_entry.entry_type else { let EntryType::Dir {
children: ref mut parent_children,
..
} = parent_entry.entry_type
else {
panic!(""); panic!("");
}; };
let key = Key::Dir { id: rand::random() }; let key = Key::Dir { id: rand::random() };
@ -724,7 +728,11 @@ async fn match_request(
let Some(mut parent_entry) = vfs.key_to_entry.remove(&parent_key) else { let Some(mut parent_entry) = vfs.key_to_entry.remove(&parent_key) else {
panic!(""); panic!("");
}; };
let EntryType::Dir { children: ref mut parent_children, .. } = parent_entry.entry_type else { let EntryType::Dir {
children: ref mut parent_children,
..
} = parent_entry.entry_type
else {
panic!(""); panic!("");
}; };
let key = Key::File { id: hash }; let key = Key::File { id: hash };
@ -782,7 +790,11 @@ async fn match_request(
let Some(mut parent_entry) = vfs.key_to_entry.remove(&parent_key) else { let Some(mut parent_entry) = vfs.key_to_entry.remove(&parent_key) else {
panic!(""); panic!("");
}; };
let EntryType::Dir { children: ref mut parent_children, .. } = parent_entry.entry_type else { let EntryType::Dir {
children: ref mut parent_children,
..
} = parent_entry.entry_type
else {
panic!(""); panic!("");
}; };
let key = Key::File { id: hash }; let key = Key::File { id: hash };
@ -878,10 +890,15 @@ async fn match_request(
let Some(parent_key) = vfs.path_to_key.remove(&parent_path) else { let Some(parent_key) = vfs.path_to_key.remove(&parent_path) else {
panic!(""); panic!("");
}; };
let Some(mut parent_entry) = vfs.key_to_entry.remove(&parent_key) else { let Some(mut parent_entry) = vfs.key_to_entry.remove(&parent_key)
else {
panic!(""); panic!("");
}; };
let EntryType::Dir { children: ref mut parent_children, .. } = parent_entry.entry_type else { let EntryType::Dir {
children: ref mut parent_children,
..
} = parent_entry.entry_type
else {
panic!(""); panic!("");
}; };
let key = Key::File { id: hash }; let key = Key::File { id: hash };