From da65ee39162d0323321340b2a9cef9a013ad36ef Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 29 Mar 2026 23:09:46 +0200 Subject: Beginning sema work --- oryxc/src/unistr.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'oryxc/src/unistr.rs') diff --git a/oryxc/src/unistr.rs b/oryxc/src/unistr.rs index f9ea3d0..9a204cf 100644 --- a/oryxc/src/unistr.rs +++ b/oryxc/src/unistr.rs @@ -1,3 +1,4 @@ +use std::fmt::{self, Display, Formatter}; use std::hash::{ Hash, Hasher, @@ -13,6 +14,12 @@ use unicode_normalization::{ #[derive(Copy, Clone, Debug, Eq)] pub struct UniStr<'a>(pub &'a str); +impl Display for UniStr<'_> { + fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), fmt::Error> { + return self.0.fmt(f); + } +} + impl Hash for UniStr<'_> { fn hash(&self, state: &mut H) { /* In the ASCII common case we use .bytes() to avoid decoding -- cgit v1.2.3