summaryrefslogtreecommitdiffstats
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/identifiers.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/rust/src/identifiers.rs b/rust/src/identifiers.rs
index 386570b9..5cfa2fb6 100644
--- a/rust/src/identifiers.rs
+++ b/rust/src/identifiers.rs
@@ -4,13 +4,15 @@ use regex::Regex;
use serde_json;
use std::str::FromStr;
use uuid::Uuid;
+use std::fmt;
+
#[derive(Clone, Copy, PartialEq, Debug)]
pub struct FatCatId(Uuid);
-impl ToString for FatCatId {
- fn to_string(&self) -> String {
- uuid2fcid(&self.to_uuid())
+impl fmt::Display for FatCatId {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ write!(f, "{}", uuid2fcid(&self.to_uuid()))
}
}