File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ extern "C" {
33
33
pub fn _g_get_tmp_dir ( ) -> * const c_char ;
34
34
}
35
35
36
-
37
36
#[ derive( Clone , FromPrimitive , Debug ) ]
38
37
#[ repr( u32 ) ]
39
38
pub enum CodeSigningPolicy {
@@ -135,9 +134,7 @@ impl<'a> Process<'a> {
135
134
#[ cfg( not( target_os = "linux" ) ) ]
136
135
let dir = _g_get_current_dir ( ) ;
137
136
138
- CStr :: from_ptr ( dir)
139
- . to_string_lossy ( )
140
- . to_string ( )
137
+ CStr :: from_ptr ( dir) . to_string_lossy ( ) . to_string ( )
141
138
}
142
139
}
143
140
@@ -149,9 +146,7 @@ impl<'a> Process<'a> {
149
146
#[ cfg( not( target_os = "linux" ) ) ]
150
147
let dir = _g_get_tmp_dir ( ) ;
151
148
152
- CStr :: from_ptr ( dir)
153
- . to_string_lossy ( )
154
- . to_string ( )
149
+ CStr :: from_ptr ( dir) . to_string_lossy ( ) . to_string ( )
155
150
}
156
151
}
157
152
@@ -163,9 +158,7 @@ impl<'a> Process<'a> {
163
158
#[ cfg( not( target_os = "linux" ) ) ]
164
159
let dir = _g_get_home_dir ( ) ;
165
160
166
- CStr :: from_ptr ( dir)
167
- . to_string_lossy ( )
168
- . to_string ( )
161
+ CStr :: from_ptr ( dir) . to_string_lossy ( ) . to_string ( )
169
162
}
170
163
}
171
164
You can’t perform that action at this time.
0 commit comments