File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ pathbuf_init_then_push = "warn"
66
66
redundant_type_annotations = " warn"
67
67
ref_patterns = " warn"
68
68
renamed_function_params = " warn"
69
+ semicolon_inside_block = " warn"
69
70
try_err = " warn"
70
71
unneeded_field_pattern = " warn"
71
72
unused_trait_names = " warn"
Original file line number Diff line number Diff line change @@ -337,7 +337,9 @@ impl SecretAgent {
337
337
ssl:: SSL_ImportFD ( null_mut ( ) , base_fd. cast ( ) )
338
338
} ;
339
339
if fd. is_null ( ) {
340
- unsafe { prio:: PR_Close ( base_fd) } ;
340
+ unsafe {
341
+ prio:: PR_Close ( base_fd) ;
342
+ }
341
343
return Err ( Error :: CreateSslSocket ) ;
342
344
}
343
345
Ok ( fd)
@@ -758,11 +760,15 @@ impl SecretAgent {
758
760
if self . raw == Some ( true ) {
759
761
// Need to hold the record list in scope until the close is done.
760
762
let _records = self . setup_raw ( ) . expect ( "Can only close" ) ;
761
- unsafe { prio:: PR_Close ( self . fd . cast ( ) ) } ;
763
+ unsafe {
764
+ prio:: PR_Close ( self . fd . cast ( ) ) ;
765
+ }
762
766
} else {
763
767
// Need to hold the IO wrapper in scope until the close is done.
764
768
let _io = self . io . wrap ( & [ ] ) ;
765
- unsafe { prio:: PR_Close ( self . fd . cast ( ) ) } ;
769
+ unsafe {
770
+ prio:: PR_Close ( self . fd . cast ( ) ) ;
771
+ }
766
772
} ;
767
773
let _output = self . io . take_output ( ) ;
768
774
self . fd = null_mut ( ) ;
You can’t perform that action at this time.
0 commit comments