1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 02:33:46 +00:00

[BEEEP] Add println clippy lints for desktop_native. (#16761)

* [BEEEP] Add println clippy lints for `desktop_native`.

* remaining stray printlns
This commit is contained in:
neuronull
2025-10-21 06:38:39 -07:00
committed by GitHub
parent 8a8076a6da
commit 8370f43aae
5 changed files with 9 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
use desktop_core::process_isolation;
use std::{ffi::c_char, sync::LazyLock};
use tracing::info;
static ORIGINAL_UNSETENV: LazyLock<unsafe extern "C" fn(*const c_char) -> i32> =
LazyLock::new(|| unsafe {
@@ -38,8 +39,8 @@ unsafe extern "C" fn unsetenv(name: *const c_char) -> i32 {
#[ctor::ctor]
fn preload_init() {
let pid = unsafe { libc::getpid() };
info!(pid, "Enabling memory security for process.");
unsafe {
println!("[Process Isolation] Enabling memory security for process {pid}");
process_isolation::isolate_process();
process_isolation::disable_coredumps();
}