diff --git a/flake.nix b/flake.nix index 9b480bb..67cbe78 100644 --- a/flake.nix +++ b/flake.nix @@ -134,7 +134,15 @@ clippy = naersk-lib.buildPackage { src = ./.; mode = "clippy"; - cargoClippyOptions = orig: orig ++ [ "--all-targets" "--" "-D" "warnings" ]; + cargoClippyOptions = + orig: + orig + ++ [ + "--all-targets" + "--" + "-D" + "warnings" + ]; }; } ); diff --git a/hive-c0re/src/agent_server.rs b/hive-c0re/src/agent_server.rs index 66d484d..b08e18f 100644 --- a/hive-c0re/src/agent_server.rs +++ b/hive-c0re/src/agent_server.rs @@ -18,11 +18,7 @@ pub struct AgentSocket { pub handle: JoinHandle<()>, } -pub fn start( - agent: &str, - socket_path: &Path, - broker: Arc, -) -> Result { +pub fn start(agent: &str, socket_path: &Path, broker: Arc) -> Result { let agent = agent.to_owned(); if let Some(parent) = socket_path.parent() { std::fs::create_dir_all(parent) diff --git a/hive-c0re/src/approvals.rs b/hive-c0re/src/approvals.rs index 0dbeac1..8c32c40 100644 --- a/hive-c0re/src/approvals.rs +++ b/hive-c0re/src/approvals.rs @@ -36,7 +36,8 @@ impl Approvals { } let conn = Connection::open(path) .with_context(|| format!("open approvals db {}", path.display()))?; - conn.execute_batch(SCHEMA).context("apply approvals schema")?; + conn.execute_batch(SCHEMA) + .context("apply approvals schema")?; Ok(Self { conn: Mutex::new(conn), }) diff --git a/hive-c0re/src/main.rs b/hive-c0re/src/main.rs index f31f2c1..ce5aa10 100644 --- a/hive-c0re/src/main.rs +++ b/hive-c0re/src/main.rs @@ -81,7 +81,9 @@ async fn main() -> Result<()> { } Cmd::List => render(client::request(&cli.socket, HostRequest::List).await?), Cmd::Pending => render(client::request(&cli.socket, HostRequest::Pending).await?), - Cmd::Approve { id } => render(client::request(&cli.socket, HostRequest::Approve { id }).await?), + Cmd::Approve { id } => { + render(client::request(&cli.socket, HostRequest::Approve { id }).await?) + } Cmd::Deny { id } => render(client::request(&cli.socket, HostRequest::Deny { id }).await?), } }