Enable Namespace to be used in format_ident
diff --git a/macro/src/namespace.rs b/macro/src/namespace.rs
index 678e7e0..d2b3e1c 100644
--- a/macro/src/namespace.rs
+++ b/macro/src/namespace.rs
@@ -1,4 +1,5 @@
use crate::syntax::ident;
+use quote::IdentFragment;
use std::fmt::{self, Display};
use syn::parse::{Parse, ParseStream, Result};
use syn::{Path, Token};
@@ -37,3 +38,9 @@
Ok(())
}
}
+
+impl IdentFragment for Namespace {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ Display::fmt(self, f)
+ }
+}