From 539d2cd77891ac02c1d467c65d26c880ea154b59 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 18 Sep 2024 12:29:50 -0400 Subject: Most pass-through errors do not need additional message text --- src/index/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index') diff --git a/src/index/app.rs b/src/index/app.rs index a3456c0..4f234ee 100644 --- a/src/index/app.rs +++ b/src/index/app.rs @@ -31,6 +31,6 @@ impl<'a> Index<'a> { pub enum Error { #[error("channel {0} not found")] ChannelNotFound(channel::Id), - #[error("database error: {0}")] + #[error(transparent)] DatabaseError(#[from] sqlx::Error), } -- cgit v1.2.3