diff --git a/src/runtime/mod.rs b/src/runtime/mod.rs index deeeaa443d29def446a15f508ead3d5603ba5bcd..8c3629e2eb715bc1ab2241594ec80afbebe396b2 100644 --- a/src/runtime/mod.rs +++ b/src/runtime/mod.rs @@ -444,16 +444,16 @@ impl Predicate { } impl Debug for Predicate { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + f.pad("{")?; for (ChannelId { controller_id, channel_index }, &v) in self.assigned.iter() { - write!( - f, + f.write_fmt(format_args!( "({:?},{:?})=>{}, ", controller_id, channel_index, if v { 'T' } else { 'F' } - )?; + ))? } - Ok(()) + f.pad("}") } }