From 5fd156a6bbe6a9ee9a2e75cead51ed8051a7c175 Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Sun, 12 May 2024 16:27:31 -0700 Subject: [PATCH] enable `error_impl_error` lint Except the 1 violation would have to be renamed in, like, every single file in this project. So we're just enabling it so that we don't make the same mistake in the future. --- Cargo.toml | 1 + src/utils/error.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index bc8aceef..c93a5705 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ default_union_representation = "warn" deref_by_slicing = "warn" empty_drop = "warn" empty_structs_with_brackets = "warn" +error_impl_error = "warn" filetype_is_file = "warn" float_cmp_const = "warn" get_unwrap = "warn" diff --git a/src/utils/error.rs b/src/utils/error.rs index d05a9a28..d08a8dde 100644 --- a/src/utils/error.rs +++ b/src/utils/error.rs @@ -16,6 +16,7 @@ use crate::RumaResponse; pub(crate) type Result = std::result::Result; #[derive(Error, Debug)] +#[allow(clippy::error_impl_error)] pub(crate) enum Error { #[cfg(feature = "sqlite")] #[error("There was a problem with the connection to the sqlite database: {source}")]