removed debug stuff
This commit is contained in:
@@ -258,10 +258,8 @@ impl<'a> SmbClient<'a> {
|
|||||||
loop {
|
loop {
|
||||||
match result_from_ptr_mut(read_dir_fn(self.ctx, dir)) {
|
match result_from_ptr_mut(read_dir_fn(self.ctx, dir)) {
|
||||||
Ok(dir_struct) => {
|
Ok(dir_struct) => {
|
||||||
print!("Success: ");
|
|
||||||
unsafe{
|
unsafe{
|
||||||
let c_str: &CStr = CStr::from_ptr(&(*dir_struct).name[0]) ;
|
let c_str: &CStr = CStr::from_ptr(&(*dir_struct).name[0]) ;
|
||||||
println!("{}", c_str.to_str().unwrap());
|
|
||||||
let test = Cow::Borrowed(c_str.to_str().unwrap()).into_owned();
|
let test = Cow::Borrowed(c_str.to_str().unwrap()).into_owned();
|
||||||
return_dirs.push(test);
|
return_dirs.push(test);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user