deltaphc / raylib-rs

Rust bindings for raylib
Other
751 stars 134 forks source link

[Request] Return `Result<_, Error>` instead of `Result<_, String>` #104

Closed alexmozaidze closed 2 years ago

alexmozaidze commented 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.

alexmozaidze commented 2 years ago

I've realized I could simply convert errors to strings. Sorry for a dum issue