mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 16:21:24 +01:00
enable same_name_method lint
This commit is contained in:
parent
d144db8688
commit
cc5977b4e4
6 changed files with 14 additions and 17 deletions
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue