Skip to content

Commit cb47ebe

Browse files
committed
fix cargo fmt
1 parent cf360bb commit cb47ebe

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

agent/src/main.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
use anyhow::{anyhow, bail, Result};
44
use clap::Parser;
55
use dropshot::{ConfigLogging, ConfigLoggingIfExists, ConfigLoggingLevel};
6-
use slog::{debug, error, info, o, Logger};
76
use semver::Version;
7+
use slog::{debug, error, info, o, Logger};
88
use std::collections::HashSet;
99
use std::io::Write;
1010
use std::net::SocketAddr;
@@ -342,7 +342,8 @@ async fn main() -> Result<()> {
342342

343343
fn write_openapi<W: Write>(f: &mut W) -> Result<()> {
344344
let api = server::make_api()?;
345-
api.openapi("Crucible Agent", Version::new(0, 0, 1)).write(f)?;
345+
api.openapi("Crucible Agent", Version::new(0, 0, 1))
346+
.write(f)?;
346347
Ok(())
347348
}
348349

downstairs/src/repair.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ pub struct FileServerContext {
3131

3232
pub fn write_openapi<W: Write>(f: &mut W) -> Result<()> {
3333
let api = build_api();
34-
api.openapi("Downstairs Repair", Version::new(0, 0, 1)).write(f)?;
34+
api.openapi("Downstairs Repair", Version::new(0, 0, 1))
35+
.write(f)?;
3536
Ok(())
3637
}
3738

pantry/src/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ async fn main() -> Result<()> {
4747

4848
fn write_openapi<W: Write>(f: &mut W) -> Result<()> {
4949
let api = server::make_api().map_err(|e| anyhow!(e))?;
50-
api.openapi("Crucible Pantry", Version::new(0, 0, 1)).write(f)?;
50+
api.openapi("Crucible Pantry", Version::new(0, 0, 1))
51+
.write(f)?;
5152
Ok(())
5253
}
5354

0 commit comments

Comments
 (0)