From 46b83c38094c447d5e8035664389f5ac2a3367b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Mon, 9 Nov 2026 08:17:53 +0000 Subject: [PATCH] agent: a method that takes self is not named from_* clippy's wrong_self_convention, under -D warnings in CI (run 42584657011). Co-Authored-By: Claude Opus 5.5 --- src-tauri/src/agent.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/agent.rs b/src-tauri/src/agent.rs index fc91b22..610c13d 100644 --- a/src-tauri/src/agent.rs +++ b/src-tauri/src/agent.rs @@ -83,7 +83,7 @@ impl State { } /// Whether this is a state the CLI's own status file decides, while the process runs. - fn from_cli(&self) -> bool { + fn told_by_cli(&self) -> bool { matches!( self, State::Starting | State::Connecting | State::Running | State::Waiting(_) @@ -337,7 +337,7 @@ impl Agent { } if read { let now = self.state(); - if now.from_cli() { + if now.told_by_cli() { let next = match cli::link_of(pid) { Some(link) => from_link(&link, &now), None => last_line(&self.log, from)