summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-06-23 09:09:13 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-06-23 09:09:13 +0200
commit929bda8984995791f9702d8a38a06de00d3e555a (patch)
tree573123c0ddb7465bc4e7dc25e22b77af5af65fec
parent4320977e4040d44dcdb346db1bf2d8ca6c5d316e (diff)
clippy: Random fixups
-rw-r--r--server/common/src/git.rs1
-rw-r--r--server/src/main.rs1
-rw-r--r--server/src/trans.rs1
3 files changed, 1 insertions, 2 deletions
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<Build> {
.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;