mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 23:01:37 +00:00
chore: cargo fmt
This commit is contained in:
parent
a3e55a8976
commit
85ee3b30cd
33 changed files with 843 additions and 676 deletions
|
|
@ -13,8 +13,7 @@ fn main() {
|
|||
let out_path = Path::new(&out_dir).join("openapi.json");
|
||||
|
||||
let openapi = ApiDoc::openapi();
|
||||
let json = serde_json::to_string_pretty(&openapi)
|
||||
.expect("Failed to serialize OpenAPI spec");
|
||||
let json = serde_json::to_string_pretty(&openapi).expect("Failed to serialize OpenAPI spec");
|
||||
|
||||
fs::write(&out_path, json).expect("Failed to write OpenAPI spec");
|
||||
emit_stdout(&format!(
|
||||
|
|
|
|||
|
|
@ -47,7 +47,11 @@ fn init_logging() {
|
|||
let filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info"));
|
||||
tracing_subscriber::registry()
|
||||
.with(filter)
|
||||
.with(tracing_logfmt::builder().layer().with_writer(std::io::stderr))
|
||||
.with(
|
||||
tracing_logfmt::builder()
|
||||
.layer()
|
||||
.with_writer(std::io::stderr),
|
||||
)
|
||||
.init();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue