diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-02-20 16:14:51 +0100 |
---|---|---|
committer | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-03-30 13:52:31 +0200 |
commit | 82c0c5c5d9128ea173477638c5312f01d73837a1 (patch) | |
tree | 432a3c836ee63e2cc0145e825abf93c9954aaad1 | |
parent | 30fc7d9cf5c03a0ea61749fb84f619cad00ad8c1 (diff) | |
download | gcc-82c0c5c5d9128ea173477638c5312f01d73837a1.zip gcc-82c0c5c5d9128ea173477638c5312f01d73837a1.tar.gz gcc-82c0c5c5d9128ea173477638c5312f01d73837a1.tar.bz2 |
libproc_macro: Implement Display on Literal
Implement the Display trait on external rust structure Literal.
ChangeLog:
* librust/proc_macro/rust/literal.rs: Implement Display trait.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | librust/proc_macro/rust/literal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/librust/proc_macro/rust/literal.rs b/librust/proc_macro/rust/literal.rs index 02e78c6..e829236 100644 --- a/librust/proc_macro/rust/literal.rs +++ b/librust/proc_macro/rust/literal.rs @@ -175,8 +175,8 @@ impl fmt::Debug for Literal { } impl fmt::Display for Literal { - 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) } } |