summaryrefslogtreecommitdiff
path: root/alligator_render/src/texture.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2022-10-22 12:46:51 -0400
committerMicha White <botahamec@outlook.com>2022-10-22 12:46:51 -0400
commit578fc0aa670067991135921ab9a03d223036a598 (patch)
treed623dda408277db8d7ecdb11978f7d74ced0bf5a /alligator_render/src/texture.rs
parentd8e633093c4f1728900354ae790b088c61b06615 (diff)
#[source] need not be specified
Diffstat (limited to 'alligator_render/src/texture.rs')
-rw-r--r--alligator_render/src/texture.rs12
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>),
}