Skip to content

Commit 2269003

Browse files
committed
fmt
1 parent 169d8a9 commit 2269003

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

frida-gum/src/process.rs

+3-10
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ extern "C" {
3333
pub fn _g_get_tmp_dir() -> *const c_char;
3434
}
3535

36-
3736
#[derive(Clone, FromPrimitive, Debug)]
3837
#[repr(u32)]
3938
pub enum CodeSigningPolicy {
@@ -135,9 +134,7 @@ impl<'a> Process<'a> {
135134
#[cfg(not(target_os = "linux"))]
136135
let dir = _g_get_current_dir();
137136

138-
CStr::from_ptr(dir)
139-
.to_string_lossy()
140-
.to_string()
137+
CStr::from_ptr(dir).to_string_lossy().to_string()
141138
}
142139
}
143140

@@ -149,9 +146,7 @@ impl<'a> Process<'a> {
149146
#[cfg(not(target_os = "linux"))]
150147
let dir = _g_get_tmp_dir();
151148

152-
CStr::from_ptr(dir)
153-
.to_string_lossy()
154-
.to_string()
149+
CStr::from_ptr(dir).to_string_lossy().to_string()
155150
}
156151
}
157152

@@ -163,9 +158,7 @@ impl<'a> Process<'a> {
163158
#[cfg(not(target_os = "linux"))]
164159
let dir = _g_get_home_dir();
165160

166-
CStr::from_ptr(dir)
167-
.to_string_lossy()
168-
.to_string()
161+
CStr::from_ptr(dir).to_string_lossy().to_string()
169162
}
170163
}
171164

0 commit comments

Comments
 (0)