Closed Shir0kamii closed 2 years ago
Hi!
I was randomly reading your code, when something catched my eye.
Since the trait ToString rely on the implementation of Display, calling self.to_string() inside a Display implementation result in an infinite loop.
ToString
Display
self.to_string()
I confirmed it through experimentation then implemented a simple fix.
Thank you!
Hi!
I was randomly reading your code, when something catched my eye.
Since the trait
ToString
rely on the implementation ofDisplay
, callingself.to_string()
inside aDisplay
implementation result in an infinite loop.I confirmed it through experimentation then implemented a simple fix.