Closed alexmozaidze closed 2 years ago
I am using thiserror crate and can't seem to figure out how to glue the String error (that loading a texture returns) and the regular errors (like io::Error). I can use Box<dyn Error> but then I'm sacrificing performance.
thiserror
String
io::Error
Box<dyn Error>
I've realized I could simply convert errors to strings. Sorry for a dum issue
I am using
thiserror
crate and can't seem to figure out how to glue theString
error (that loading a texture returns) and the regular errors (likeio::Error
). I can useBox<dyn Error>
but then I'm sacrificing performance.