diff options
| author | Micha White <botahamec@outlook.com> | 2022-10-22 12:46:51 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-10-22 12:46:51 -0400 |
| commit | 578fc0aa670067991135921ab9a03d223036a598 (patch) | |
| tree | d623dda408277db8d7ecdb11978f7d74ced0bf5a /alligator_render | |
| parent | d8e633093c4f1728900354ae790b088c61b06615 (diff) | |
#[source] need not be specified
Diffstat (limited to 'alligator_render')
| -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>), } |
