Skip to content

Commit 5947aa8

Browse files
committed
fix: Remove unused imports and static handler
- Remove unused import of LIST_PROMPTS_HANDLER in command.rs - Remove unused static PROMPTS_HANDLER in prompts/mod.rs This change fixes the warnings reported by the compiler and ensures that only the necessary imports and static handlers are used. 🤖 Assisted by [Amazon Q Developer](https://aws.amazon.com/q/developer)
1 parent e21c587 commit 5947aa8

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

crates/chat-cli/src/cli/chat/command.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use crate::cli::chat::commands::editor::EDITOR_HANDLER;
2222
use crate::cli::chat::commands::help::HELP_HANDLER;
2323
use crate::cli::chat::commands::issue::ISSUE_HANDLER;
2424
use crate::cli::chat::commands::profile::PROFILE_HANDLER;
25-
use crate::cli::chat::commands::prompts::PROMPTS_HANDLER;
2625
use crate::cli::chat::commands::quit::QUIT_HANDLER;
2726
use crate::cli::chat::commands::tools::TOOLS_HANDLER;
2827
use crate::cli::chat::commands::usage::USAGE_HANDLER;

crates/chat-cli/src/cli/chat/commands/prompts/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ pub use get::GET_PROMPTS_HANDLER;
2525
pub use help::HELP_PROMPTS_HANDLER;
2626
pub use list::LIST_PROMPTS_HANDLER;
2727

28-
/// Static instance of the prompts command handler
29-
pub static PROMPTS_HANDLER: PromptsCommand = PromptsCommand;
30-
3128
/// Handler for the prompts command
3229
pub struct PromptsCommand;
3330

0 commit comments

Comments
 (0)