mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-26 23:27:14 +03:00
Format Rust code using rustfmt
This commit is contained in:
parent
6eb00b7fca
commit
512f9be34a
27
src/vfs.rs
27
src/vfs.rs
@ -628,7 +628,11 @@ async fn match_request(
|
||||
let Some(mut parent_entry) = vfs.key_to_entry.remove(&parent_key) else {
|
||||
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!("");
|
||||
};
|
||||
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 {
|
||||
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!("");
|
||||
};
|
||||
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 {
|
||||
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!("");
|
||||
};
|
||||
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 {
|
||||
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!("");
|
||||
};
|
||||
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!("");
|
||||
};
|
||||
let key = Key::File { id: hash };
|
||||
|
Loading…
Reference in New Issue
Block a user