enable too_many_lines lint

And just disable it everywhere it fires, I know.
This commit is contained in:
Charles Hall 2024-05-14 19:17:47 -07:00
parent 8ef278d358
commit baab928281
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
19 changed files with 27 additions and 1 deletions

View file

@ -327,6 +327,7 @@ impl Service {
AdminCommand::try_parse_from(argv).map_err(|error| error.to_string())
}
#[allow(clippy::too_many_lines)]
async fn process_admin_command(
&self,
command: AdminCommand,
@ -933,6 +934,7 @@ impl Service {
///
/// Users in this room are considered admins by grapevine, and the room can be
/// used to issue admin commands by talking to the server user inside it.
#[allow(clippy::too_many_lines)]
pub(crate) async fn create_admin_room(&self) -> Result<()> {
let room_id = RoomId::new(services().globals.server_name());

View file

@ -47,6 +47,7 @@ pub(crate) struct Service {
}
impl Service {
#[allow(clippy::too_many_lines)]
pub(crate) async fn get_hierarchy(
&self,
sender_user: &UserId,
@ -306,6 +307,7 @@ impl Service {
})
}
#[allow(clippy::too_many_lines)]
fn get_room_chunk(
&self,
sender_user: &UserId,

View file

@ -607,6 +607,7 @@ impl Service {
Ok(pdu_id)
}
#[allow(clippy::too_many_lines)]
pub(crate) fn create_hash_and_sign_event(
&self,
pdu_builder: PduBuilder,

View file

@ -57,6 +57,7 @@ impl Service {
.remove(&(user_id, device_id, conn_id));
}
#[allow(clippy::too_many_lines)]
pub(crate) fn update_sync_request_with_cache(
&self,
user_id: OwnedUserId,