File tree 4 files changed +5
-5
lines changed
cap-primitives/src/rustix/linux/fs
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -982,7 +982,7 @@ impl DirExtUtf8 for cap_std::fs_utf8::Dir {
982
982
& self . as_filelike_view :: < std:: fs:: File > ( ) ,
983
983
path. as_ref ( ) . as_ref ( ) ,
984
984
) {
985
- Ok ( file) => Ok ( Self :: from_std_file ( file. into ( ) ) ) ,
985
+ Ok ( file) => Ok ( Self :: from_std_file ( file) ) ,
986
986
Err ( e) => Err ( e) ,
987
987
}
988
988
}
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ impl PoolExt for Pool {
336
336
for addr in addrs {
337
337
self . _pool ( ) . check_addr ( & addr) ?;
338
338
339
- match rustix:: net:: connect ( & socket, & addr) {
339
+ match rustix:: net:: connect ( socket, & addr) {
340
340
Ok ( ( ) ) => return Ok ( ( ) ) ,
341
341
Err ( err) => last_err = Some ( err) ,
342
342
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ pub(crate) fn open_impl(
37
37
// If we got anything other than a `ENOSYS` error, that's our result.
38
38
match result {
39
39
Err ( err) if err. raw_os_error ( ) == Some ( rustix:: io:: Errno :: NOSYS . raw_os_error ( ) ) => { }
40
- Err ( err) => return Err ( err. into ( ) ) ,
40
+ Err ( err) => return Err ( err) ,
41
41
Ok ( fd) => return Ok ( fd) ,
42
42
}
43
43
}
Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ impl TempDir {
71
71
pub fn new_in ( dir : & Dir ) -> io:: Result < Self > {
72
72
for _ in 0 ..Self :: num_iterations ( ) {
73
73
let name = & Self :: new_name ( ) ;
74
- match dir. create_dir ( & name) {
74
+ match dir. create_dir ( name) {
75
75
Ok ( ( ) ) => {
76
- let dir = match dir. open_dir ( & name) {
76
+ let dir = match dir. open_dir ( name) {
77
77
Ok ( dir) => dir,
78
78
Err ( e) => {
79
79
dir. remove_dir ( name) . ok ( ) ;
You can’t perform that action at this time.
0 commit comments