mirror of
https://github.com/uqbar-dao/nectar.git
synced 2025-01-02 21:55:41 +03:00
Format Rust code using rustfmt
This commit is contained in:
parent
c3e01d2800
commit
bfaf63120f
@ -1,6 +1,6 @@
|
||||
use lib::types::core::{
|
||||
Address, FdManagerError, FdManagerRequest, KernelMessage, Message, MessageReceiver, MessageSender,
|
||||
PrintSender, Printout, ProcessId, Request, FD_MANAGER_PROCESS_ID,
|
||||
Address, FdManagerError, FdManagerRequest, KernelMessage, Message, MessageReceiver,
|
||||
MessageSender, PrintSender, Printout, ProcessId, Request, FD_MANAGER_PROCESS_ID,
|
||||
};
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
|
||||
@ -203,7 +203,11 @@ fn get_max_fd_limit() -> anyhow::Result<u64> {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn send_fd_manager_open(our: &Address, number_opened: u64, send_to_loop: &MessageSender) -> anyhow::Result<()> {
|
||||
pub async fn send_fd_manager_open(
|
||||
our: &Address,
|
||||
number_opened: u64,
|
||||
send_to_loop: &MessageSender,
|
||||
) -> anyhow::Result<()> {
|
||||
let message = Message::Request(Request {
|
||||
inherit: false,
|
||||
expects_response: None,
|
||||
@ -215,7 +219,11 @@ pub async fn send_fd_manager_open(our: &Address, number_opened: u64, send_to_loo
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn send_fd_manager_close(our: &Address, number_closed: u64, send_to_loop: &MessageSender) -> anyhow::Result<()> {
|
||||
pub async fn send_fd_manager_close(
|
||||
our: &Address,
|
||||
number_closed: u64,
|
||||
send_to_loop: &MessageSender,
|
||||
) -> anyhow::Result<()> {
|
||||
let message = Message::Request(Request {
|
||||
inherit: false,
|
||||
expects_response: None,
|
||||
@ -227,7 +235,11 @@ pub async fn send_fd_manager_close(our: &Address, number_closed: u64, send_to_lo
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn send_to_fd_manager(our: &Address, message: Message, send_to_loop: &MessageSender) -> anyhow::Result<()> {
|
||||
async fn send_to_fd_manager(
|
||||
our: &Address,
|
||||
message: Message,
|
||||
send_to_loop: &MessageSender,
|
||||
) -> anyhow::Result<()> {
|
||||
KernelMessage::builder()
|
||||
.id(rand::random())
|
||||
.source(our.clone())
|
||||
|
Loading…
Reference in New Issue
Block a user