Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
s1341 committed Feb 2, 2025
1 parent 169d8a9 commit 2269003
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions frida-gum/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ extern "C" {
pub fn _g_get_tmp_dir() -> *const c_char;
}


#[derive(Clone, FromPrimitive, Debug)]
#[repr(u32)]
pub enum CodeSigningPolicy {
Expand Down Expand Up @@ -135,9 +134,7 @@ impl<'a> Process<'a> {
#[cfg(not(target_os = "linux"))]
let dir = _g_get_current_dir();

CStr::from_ptr(dir)
.to_string_lossy()
.to_string()
CStr::from_ptr(dir).to_string_lossy().to_string()
}
}

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

CStr::from_ptr(dir)
.to_string_lossy()
.to_string()
CStr::from_ptr(dir).to_string_lossy().to_string()
}
}

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

CStr::from_ptr(dir)
.to_string_lossy()
.to_string()
CStr::from_ptr(dir).to_string_lossy().to_string()
}
}

Expand Down

0 comments on commit 2269003

Please sign in to comment.