chore: cargo fmt

This commit is contained in:
2025-05-07 08:51:18 +08:00
parent 7261159e57
commit d41aa0fef2
8 changed files with 35 additions and 16 deletions

View File

@@ -41,7 +41,8 @@ impl Display for Symbol {
}
}
static REGEX: LazyLock<Regex> = LazyLock::new(|| Regex::new(r#"^[a-zA-Z\_][a-zA-Z0-9\_\'\-]*$"#).unwrap());
static REGEX: LazyLock<Regex> =
LazyLock::new(|| Regex::new(r#"^[a-zA-Z\_][a-zA-Z0-9\_\'\-]*$"#).unwrap());
impl Symbol {
fn normal(&self) -> bool {
!REGEX.is_match(self)