agent: a method that takes self is not named from_*
ci / check (push) Failing after 3s
ci / start (push) Failing after 3s

clippy's wrong_self_convention, under -D warnings in CI (run 42584657011).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-09 08:17:53 +00:00
1 parent 2a51b4f6d0
commit 46b83c3809
1 file changed
+2 -2
+2 -2
View File
@@ -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)