Skip to content

Commit 89400d6

Browse files
tdiclaude
andcommitted
Fix remaining clippy warnings
- Replace segments.last() with segments.next_back() for DoubleEndedIterator - Replace format!() with .to_string() for static strings - Fixes all clippy warnings causing CI failures 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent eb3fe3a commit 89400d6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/agent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl Agent {
6363
// For non-GitHub URLs, use the last segment as filename
6464
parsed_url
6565
.path_segments()
66-
.and_then(|segments| segments.last())
66+
.and_then(|mut segments| segments.next_back())
6767
.ok_or_else(|| anyhow::anyhow!("Invalid URL"))?
6868
.to_string()
6969
};

src/commands/doctor.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ pub fn execute(fix: bool) -> Result<()> {
107107
issues.push(Issue {
108108
agent_name: name,
109109
issue_type: IssueType::UnmanagedFile,
110-
description: format!(
111-
"Regular file in .claude/agents/ should be managed via ccagents"
112-
),
110+
description: "Regular file in .claude/agents/ should be managed via ccagents"
111+
.to_string(),
113112
fixable: true,
114113
});
115114
}

0 commit comments

Comments
 (0)