diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-02-20 16:34:43 +0100 |
---|---|---|
committer | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-03-30 13:52:31 +0200 |
commit | 8901323c390b71b41ba11d1bcb9f166f2e15226c (patch) | |
tree | e347bc4d657c5a96b6b6b6030f9ac677c300a608 | |
parent | 048f24069eafe43b8a27f95b8a1e43b139284056 (diff) | |
download | gcc-8901323c390b71b41ba11d1bcb9f166f2e15226c.zip gcc-8901323c390b71b41ba11d1bcb9f166f2e15226c.tar.gz gcc-8901323c390b71b41ba11d1bcb9f166f2e15226c.tar.bz2 |
libproc_macro: Implement Display for Group
Implement the Display trait for the rust Group external structure.
ChangeLog:
* librust/proc_macro/rust/group.rs: Implement Display.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | librust/proc_macro/rust/group.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/librust/proc_macro/rust/group.rs b/librust/proc_macro/rust/group.rs index 6512982..5b4bd6c 100644 --- a/librust/proc_macro/rust/group.rs +++ b/librust/proc_macro/rust/group.rs @@ -76,8 +76,8 @@ impl Group { } impl fmt::Display for Group { - fn fmt(&self, _f: &mut fmt::Formatter<'_>) -> fmt::Result { - todo!("Implement this function") + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) } } |