This PR implements the Error trait for DrawError using the derive macro provided by thiserror. This requires adding the thiserror dependency to nannou. This is in keeping with how Errors are implemented elsewhere in the project however - thiserror is already used in nannou_audio, nannou_laser and nannou_isf.
742b86b extends the thiserror approach to the other public Error types from nannou. This reduces boilerplate and increases consistency across the codebase.
This PR implements the
Error
trait forDrawError
using thederive
macro provided by thiserror. This requires adding the thiserror dependency tonannou
. This is in keeping with howError
s are implemented elsewhere in the project however -thiserror
is already used innannou_audio
,nannou_laser
andnannou_isf
.