Implement the Debug trait for the rust Group external structure.
ChangeLog:
* librust/proc_macro/rust/bridge/group.rs: Derive Debug.
* librust/proc_macro/rust/group.rs: Implement Debug.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
use Delimiter;
#[repr(C)]
-#[derive(Clone)]
+#[derive(Debug, Clone)]
pub struct Group {
delimiter: Delimiter,
stream: bridge::token_stream::TokenStream,
}
impl fmt::Debug 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)
}
}