From 929bda8984995791f9702d8a38a06de00d3e555a Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 23 Jun 2025 09:09:13 +0200 Subject: clippy: Random fixups --- server/common/src/git.rs | 1 - server/src/main.rs | 1 + server/src/trans.rs | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) (limited to 'server') diff --git a/server/common/src/git.rs b/server/common/src/git.rs index 6b6cb6c..e7e5b28 100644 --- a/server/common/src/git.rs +++ b/server/common/src/git.rs @@ -218,7 +218,6 @@ impl RepoData { } } - assert!(false); Err(Error::new("Fetch succeeded but branch not found")) } diff --git a/server/src/main.rs b/server/src/main.rs index dab0cb2..7a6b1b7 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1502,6 +1502,7 @@ fn rocket_from_config(figment: Figment) -> Rocket { .attach(authorized_keys::stage()) } +#[allow(clippy::result_large_err)] #[rocket::main] async fn main() -> Result<(), rocket::Error> { let mut api = MainApi::openapi(); diff --git a/server/src/trans.rs b/server/src/trans.rs index bbf0600..065f27b 100644 --- a/server/src/trans.rs +++ b/server/src/trans.rs @@ -1,6 +1,5 @@ #![allow(dead_code)] -use anyhow; use futures::stream::TryStreamExt; use rocket_db_pools::{sqlx, Database, Pool}; use sorted_insert::SortedInsertByKey; -- cgit v1.2.3-70-g09d2