We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Debug
1 parent 335b352 commit 06878d2Copy full SHA for 06878d2
src/lib.rs
@@ -292,11 +292,10 @@ impl OrderlyAllocator {
292
293
impl fmt::Debug for OrderlyAllocator {
294
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
295
- f.write_str("OrderlyAllocator")?;
296
- f.debug_map()
297
- .entry(&"capacity", &self.capacity)
298
- .entry(&"total_available", &self.available)
299
- .entry(&"largest_available", &self.largest_available())
+ f.debug_struct("OrderlyAllocator")
+ .field(&"capacity", &self.capacity)
+ .field(&"total_available", &self.available)
+ .field(&"largest_available", &self.largest_available())
300
.finish()
301
}
302
0 commit comments