From 578fc0aa670067991135921ab9a03d223036a598 Mon Sep 17 00:00:00 2001 From: Micha White Date: Sat, 22 Oct 2022 12:46:51 -0400 Subject: #[source] need not be specified --- alligator_render/src/texture.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'alligator_render') 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), } -- cgit v1.2.3