File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ impl ToolsArgs {
63
63
session
64
64
. conversation
65
65
. tools
66
- . get ( "native" )
66
+ . get ( & ToolOrigin :: Native )
67
67
. and_then ( |tools| {
68
68
tools
69
69
. iter ( )
@@ -221,7 +221,7 @@ impl ToolsSubcommand {
221
221
let native_tool_names = session
222
222
. conversation
223
223
. tools
224
- . get ( "native" )
224
+ . get ( & ToolOrigin :: Native )
225
225
. map ( |tools| {
226
226
tools
227
227
. iter ( )
Original file line number Diff line number Diff line change @@ -169,8 +169,9 @@ pub enum ToolOrigin {
169
169
170
170
impl std:: hash:: Hash for ToolOrigin {
171
171
fn hash < H : std:: hash:: Hasher > ( & self , state : & mut H ) {
172
+ std:: mem:: discriminant ( self ) . hash ( state) ;
172
173
match self {
173
- Self :: Native => "native" . hash ( state ) ,
174
+ Self :: Native => { } ,
174
175
Self :: McpServer ( name) => name. hash ( state) ,
175
176
}
176
177
}
You can’t perform that action at this time.
0 commit comments