First of all, thanks for this lib, has been very useful.
The problem is that fmt::Display impl of BlockUtilsError calls self.to_string() whom implementation is in ToString trait, who depend on Display. So what happens, Display::fmt() calls ToString::to_string() who calls Display::fmt() and so on. This is only triggered if you try to format the error.
First of all, thanks for this lib, has been very useful.
The problem is that
fmt::Display
impl of BlockUtilsError callsself.to_string()
whom implementation is inToString
trait, who depend onDisplay
. So what happens, Display::fmt() calls ToString::to_string() who calls Display::fmt() and so on. This is only triggered if you try to format the error.