From 6562e608dcaa169afb4903503f61c4582bbb5235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 11 Sep 2026 15:17:34 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20chore:=20clear=20clippy=20findin?= =?UTF-8?q?gs=20surfaced=20by=20the=20layer=20split?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/db/board_stroke.rs | 1 - src/service/exam.rs | 4 ++++ src/service/user.rs | 4 ++++ src/web/mod.rs | 3 +-- tests/ai_bridge.rs | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/db/board_stroke.rs b/src/db/board_stroke.rs index 1904bf2..704bb72 100644 --- a/src/db/board_stroke.rs +++ b/src/db/board_stroke.rs @@ -82,7 +82,6 @@ pub async fn append( /// The one place `closed` is ordered above `locked` lives in /// [`state_refusal`]; both refusal paths re-read the board and /// ask it. - async fn why_refused(db: &Database, board: &BoardId) -> Result { let board = crate::db::board::read(db, board) .await? diff --git a/src/service/exam.rs b/src/service/exam.rs index 1c1deba..a916134 100644 --- a/src/service/exam.rs +++ b/src/service/exam.rs @@ -23,6 +23,10 @@ use crate::error::AppError; use crate::service::course::require_open; use crate::service::exam_attempt::{EXAM_LOCK, any_for_exam, course_of}; +#[expect( + clippy::too_many_arguments, + reason = "mirrors the sibling entities' create(field, field, ..) shape" +)] pub async fn create( db: &Database, creator: &UserId, diff --git a/src/service/user.rs b/src/service/user.rs index 2bd73cb..25b6623 100644 --- a/src/service/user.rs +++ b/src/service/user.rs @@ -171,6 +171,10 @@ pub async fn find_by_username(db: &Database, username: &str) -> Result Vec { - hezarfen_backend::db::rag_output::list_for(&db, &CourseNoteId::from_key(note), None, 0) + hezarfen_backend::db::rag_output::list_for(db, &CourseNoteId::from_key(note), None, 0) .await .expect("list rag outputs") .0