mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 00:31:24 +01:00
Use #[expect], lint reasons
This commit is contained in:
parent
e14b7f28f2
commit
b09c44a0ca
49 changed files with 157 additions and 161 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue