Use #[expect], lint reasons

This commit is contained in:
Lambda 2024-09-05 19:01:22 +00:00
parent e14b7f28f2
commit b09c44a0ca
49 changed files with 157 additions and 161 deletions

View file

@ -16,7 +16,10 @@ use crate::Ra;
pub(crate) type Result<T, E = Error> = std::result::Result<T, E>;
#[derive(Error, Debug)]
#[allow(clippy::error_impl_error)]
#[expect(
clippy::error_impl_error,
reason = "This is our one and only Error struct"
)]
pub(crate) enum Error {
#[cfg(feature = "sqlite")]
#[error(

View file

@ -35,9 +35,11 @@ pub(crate) struct RoomVersion {
pub(crate) redaction_event_redacts_in_content: bool,
}
// Allowed so that we can use struct-update syntax for incremental changes
// between versions even when all fields change.
#[allow(clippy::needless_update)]
#[expect(
clippy::needless_update,
reason = "so that we can use struct-update syntax for incremental changes \
between versions even when all fields change"
)]
mod known_versions {
use super::RoomVersion;