Skip to content

Commit 67cd3e5

Browse files
committed
gcore: impl Display for ProtoNodeIdentifier
1 parent b17a66d commit 67cd3e5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

node-graph/gcore/src/types.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::any::TypeId;
22

33
pub use std::borrow::Cow;
4+
use std::fmt::{Display, Formatter};
45
use std::ops::Deref;
56

67
#[macro_export]
@@ -160,6 +161,12 @@ impl Deref for ProtoNodeIdentifier {
160161
}
161162
}
162163

164+
impl Display for ProtoNodeIdentifier {
165+
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
166+
f.debug_tuple("ProtoNodeIdentifier").field(&self.name).finish()
167+
}
168+
}
169+
163170
fn migrate_type_descriptor_names<'de, D: serde::Deserializer<'de>>(deserializer: D) -> Result<Cow<'static, str>, D::Error> {
164171
use serde::Deserialize;
165172

0 commit comments

Comments
 (0)