File tree Expand file tree Collapse file tree
llm-coding-tools-bubblewrap/src
llm-coding-tools-core/src/tools/bash Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55use crate :: path_util:: normalize_path;
66use crate :: { Availability , LinuxBwrapError , Preset } ;
77use parking_lot:: RwLock ;
8+ use std:: collections:: HashSet ;
89use std:: env;
910use std:: ffi:: { OsStr , OsString } ;
1011use std:: path:: { Path , PathBuf } ;
@@ -124,7 +125,7 @@ fn first_shell_candidate_with_in<F, R>(
124125where
125126 F : FnMut ( & Path ) -> Option < R > ,
126127{
127- let mut seen = std :: collections :: HashSet :: with_capacity ( 10 ) ;
128+ let mut seen = HashSet :: with_capacity ( 10 ) ;
128129
129130 for name in [ "bash" , "sh" ] {
130131 if let Some ( shell_path) = find_binary_on_path_in ( name, env_path) {
@@ -150,7 +151,7 @@ where
150151
151152fn classify_shell_candidate < F , R > (
152153 classify : & mut F ,
153- seen : & mut std :: collections :: HashSet < Box < Path > > ,
154+ seen : & mut HashSet < Box < Path > > ,
154155 path : Box < Path > ,
155156) -> Option < ( Box < Path > , R ) >
156157where
Original file line number Diff line number Diff line change 5656fn take_pipe_buffer ( buffer : SharedPipeBuffer ) -> Vec < u8 > {
5757 match Arc :: try_unwrap ( buffer) {
5858 Ok ( mutex) => mutex. into_inner ( ) ,
59- Err ( shared) => std :: mem:: take ( & mut * shared. lock ( ) ) ,
59+ Err ( shared) => core :: mem:: take ( & mut * shared. lock ( ) ) ,
6060 }
6161}
6262
You can’t perform that action at this time.
0 commit comments