Skip to content

Commit 5b72932

Browse files
committed
fix: clippy needless_borrow in state_dir call sites
1 parent a022f31 commit 5b72932

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

kq-core/src/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ pub(crate) fn update_task_refs(repo: &Path, id: &str) -> Result<()> {
443443
}
444444
let content = fs::read_to_string(&task_path)?;
445445

446-
let state = replay_events(&crate::state_dir(&repo).join("events").join(id)).unwrap_or_default();
446+
let state = replay_events(&crate::state_dir(repo).join("events").join(id)).unwrap_or_default();
447447

448448
// Extract immutable fields from existing frontmatter
449449
let (orig_title, orig_priority, orig_created) =

kq-core/src/watcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fn is_relevant_event(event: &Event, ignore_dirs: &[String]) -> bool {
8989
/// 3. Re-indexes changed files in the knowledge database.
9090
fn handle_debounce_tick(dir: &Path) {
9191
// 1. Regenerate README from task files
92-
if crate::state_dir(&dir).is_dir()
92+
if crate::state_dir(dir).is_dir()
9393
&& let Err(e) = crate::readme_gen::generate(dir)
9494
{
9595
eprintln!("[kqs] README generation skipped: {e:#}");

0 commit comments

Comments
 (0)