Fix clippy lints

This commit is contained in:
Rahix 2025-12-09 16:48:42 +01:00
parent c11026c5be
commit be7f305a6b
6 changed files with 23 additions and 23 deletions

View file

@ -1,4 +1,7 @@
#![allow(dead_code)]
#![allow(clippy::useless_format)]
#![allow(clippy::needless_return)]
#![deny(clippy::as_conversions)]
use anyhow::Context as _;
use forgejo_api::Forgejo;
@ -69,7 +72,7 @@ async fn run() -> anyhow::Result<()> {
.map(|token| -> Result<_, ()> {
let mut repo_auth_url = repo_url.clone();
repo_auth_url.set_username("forgejo-actions")?;
repo_auth_url.set_password(Some(&token))?;
repo_auth_url.set_password(Some(token))?;
Ok(repo_auth_url)
})
.transpose()
@ -145,7 +148,9 @@ async fn run() -> anyhow::Result<()> {
}
'issues: for issue in tree.iter_issues() {
let subtree = tree.subtree_for_issue(issue).expect("issue from tree not found in tree");
let subtree = tree
.subtree_for_issue(issue)
.expect("issue from tree not found in tree");
let hash = subtree.stable_hash();
let (bot_comment, _is_new) = issue::find_or_make_bot_comment(&ctx, issue)