Built new error module to hold document name.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2026-02-12 12:24:20 -05:00
parent 564602b766
commit 7ff9ca340f
7 changed files with 111 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
use crate::mtterror::MTTError;
use isolang::Language;
use std::collections::HashMap;
use std::{collections::HashMap, fmt};
use uuid::Uuid;
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
@@ -69,9 +69,9 @@ impl Name {
}
}
impl ToString for Name {
fn to_string(&self) -> String {
self.name.clone()
impl fmt::Display for Name {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.name)
}
}