make RocStr debug print its contents as a string

This commit is contained in:
Folkert 2021-12-31 14:27:27 +01:00
parent 2c97c840fc
commit 9762c98355

View File

@ -680,7 +680,7 @@ impl fmt::Debug for RocStr {
f.debug_struct("RocStr")
.field("is_small_str", &self.is_small_str())
.field("storage", &self.storage())
.field("elements", &self.as_slice())
.field("elements", &self.as_str())
.finish()
}
}