diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-02-20 16:23:04 +0100 |
---|---|---|
committer | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-03-30 13:52:31 +0200 |
commit | 048f24069eafe43b8a27f95b8a1e43b139284056 (patch) | |
tree | c62057edf197c89ea6e96fc3e2ff886e9df42e04 | |
parent | 82c0c5c5d9128ea173477638c5312f01d73837a1 (diff) | |
download | gcc-048f24069eafe43b8a27f95b8a1e43b139284056.zip gcc-048f24069eafe43b8a27f95b8a1e43b139284056.tar.gz gcc-048f24069eafe43b8a27f95b8a1e43b139284056.tar.bz2 |
libproc_macro: Add Display impl for Punct
Add Display trait implementation for external rust structure Punct.
ChangeLog:
* librust/proc_macro/rust/punct.rs: Add Display implementation.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | librust/proc_macro/rust/punct.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/librust/proc_macro/rust/punct.rs b/librust/proc_macro/rust/punct.rs index e7001e6..0f7830e 100644 --- a/librust/proc_macro/rust/punct.rs +++ b/librust/proc_macro/rust/punct.rs @@ -68,8 +68,8 @@ impl Punct { } impl fmt::Display for Punct { - 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) } } |