diff options
Diffstat (limited to 'alligator_render/src')
| -rw-r--r-- | alligator_render/src/texture.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/alligator_render/src/texture.rs b/alligator_render/src/texture.rs index 0eacb5b..9f222e6 100644 --- a/alligator_render/src/texture.rs +++ b/alligator_render/src/texture.rs @@ -55,17 +55,9 @@ type PackErrorInternal = impl std::fmt::Debug; #[derive(Error, Debug)] pub enum TextureError { #[error("{:?}", .0)] - TextureTooLarge( - #[source] - #[from] - PackError, - ), + TextureTooLarge(#[from] PackError), #[error("{}", .0)] - BadImage( - #[source] - #[from] - DecodingError, - ), // TODO don't export this + BadImage(#[from] DecodingError), // TODO don't export this #[error("Unexpected Error (this is a bug in alligator_render): {}", .0)] Unexpected(#[source] Box<dyn Error>), } |
