From 21a12b97ba8514018a21c196066b5f265abd4a81 Mon Sep 17 00:00:00 2001 From: Paul Tsouchlos Date: Mon, 15 Jun 2026 22:12:17 -0400 Subject: [PATCH] chore: minor formatting and comment clarification --- src/git.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/git.rs b/src/git.rs index 4d2db11..95e5ff8 100644 --- a/src/git.rs +++ b/src/git.rs @@ -1,5 +1,6 @@ //! This module abstracts the git functionality needed to make `embd` work so that //! the tool can continue to work whether a global git executable is available or not. +//! Note that currently, git is required. use anyhow::{Context, Result, bail}; use url::Url; @@ -55,9 +56,7 @@ fn validate_repo_name(name: &str) -> Result<()> { let mut chars = name.chars(); let first = chars.next().unwrap(); if !(first.is_ascii_alphanumeric() || first == '_') { - bail!( - "repo name '{name}' must start with an ASCII letter, digit, or underscore" - ); + bail!("repo name '{name}' must start with an ASCII letter, digit, or underscore"); } for c in chars { if !(c.is_ascii_alphanumeric() || c == '_' || c == '-' || c == '.') {