enable same_name_method lint

This commit is contained in:
Charles Hall 2024-05-12 18:43:00 -07:00
parent d144db8688
commit cc5977b4e4
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
6 changed files with 14 additions and 17 deletions

View file

@ -121,8 +121,8 @@ pub(crate) async fn get_message_events_route(
let from = match body.from.clone() {
Some(from) => PduCount::try_from_string(&from)?,
None => match body.dir {
ruma::api::Direction::Forward => PduCount::min(),
ruma::api::Direction::Backward => PduCount::max(),
ruma::api::Direction::Forward => PduCount::MIN,
ruma::api::Direction::Backward => PduCount::MAX,
},
};