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 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+2
-2
@@ -83,7 +83,7 @@ impl State {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Whether this is a state the CLI's own status file decides, while the process runs.
|
/// 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!(
|
matches!(
|
||||||
self,
|
self,
|
||||||
State::Starting | State::Connecting | State::Running | State::Waiting(_)
|
State::Starting | State::Connecting | State::Running | State::Waiting(_)
|
||||||
@@ -337,7 +337,7 @@ impl Agent {
|
|||||||
}
|
}
|
||||||
if read {
|
if read {
|
||||||
let now = self.state();
|
let now = self.state();
|
||||||
if now.from_cli() {
|
if now.told_by_cli() {
|
||||||
let next = match cli::link_of(pid) {
|
let next = match cli::link_of(pid) {
|
||||||
Some(link) => from_link(&link, &now),
|
Some(link) => from_link(&link, &now),
|
||||||
None => last_line(&self.log, from)
|
None => last_line(&self.log, from)
|
||||||
|
|||||||
Reference in new issue
Block a user