Skip to content

Commit 7532698

Browse files
committed
fix(build): resolve duplicate manifest entry and iterator type
1 parent 6f9f29f commit 7532698

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/agent/runloop/welcome.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,7 @@ fn add_slash_command_section(sections: &mut Vec<SectionBlock>) {
406406
return;
407407
}
408408

409-
let command_iter = if limit >= SLASH_COMMANDS.len() {
410-
SLASH_COMMANDS.iter()
411-
} else {
412-
SLASH_COMMANDS.iter().take(limit)
413-
};
409+
let command_iter = SLASH_COMMANDS.iter().take(limit);
414410

415411
let entries: Vec<String> = command_iter
416412
.map(|info| {

vtcode-core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ pulldown-cmark = { version = "0.9", default-features = false, features = [
9898
] }
9999
catppuccin = { version = "2.5", default-features = false }
100100
similar = "2.4"
101-
similar = "2.4"
102101
rig = { package = "rig-core", version = "0.21", default-features = false, features = ["reqwest-rustls"] }
103102

104103
# MCP (Model Context Protocol) support

0 commit comments

Comments
 (0)