Skip to content

Commit

Permalink
chore: autoformat with cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath authored and github-actions[bot] committed Jun 13, 2024
1 parent fbafa17 commit 6c19c76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use eyre::{bail, Result};
use clap::{Parser, Subcommand};
use eyre::{bail, Result};

use crate::cmd;
use crate::net;
Expand Down
7 changes: 5 additions & 2 deletions src/cmd/init.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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?;
Expand Down

0 comments on commit 6c19c76

Please sign in to comment.