From 6c19c76352eff0bac6591d707249911dc7e2f794 Mon Sep 17 00:00:00 2001 From: NTBBloodbath Date: Thu, 13 Jun 2024 19:06:49 +0000 Subject: [PATCH] chore: autoformat with cargo --- src/cli.rs | 2 +- src/cmd/init.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 79681b5..4a41a7e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,5 +1,5 @@ -use eyre::{bail, Result}; use clap::{Parser, Subcommand}; +use eyre::{bail, Result}; use crate::cmd; use crate::net; diff --git a/src/cmd/init.rs b/src/cmd/init.rs index dc214ce..964ad4a 100644 --- a/src/cmd/init.rs +++ b/src/cmd/init.rs @@ -1,7 +1,7 @@ -use eyre::{bail, Result}; use comfy_table::modifiers::UTF8_SOLID_INNER_BORDERS; use comfy_table::presets::UTF8_FULL; use comfy_table::{Cell, ContentArrangement, Table}; +use eyre::{bail, Result}; use tokio::fs; /// Create basic site configuration TOML @@ -66,7 +66,10 @@ pub async fn init(name: &String) -> Result<()> { if path_exists { // Get the canonical (absolute) path to the existing site root let path = fs::canonicalize(name).await?; - bail!("Could not initialize the new Norgolith site: the target directory {} already exists.", path.display()); + bail!( + "Could not initialize the new Norgolith site: the target directory {} already exists.", + path.display() + ); } else { // Create site directories create_directories(name).await?;