ksud: fmt

This commit is contained in:
tiann 2023-04-04 13:55:36 +08:00
parent 48e76f9096
commit c1b30458d6
No known key found for this signature in database
GPG Key ID: 6D3F65FFD9559C06

View File

@ -5,10 +5,7 @@ use anyhow::ensure;
use getopts::Options;
#[cfg(unix)]
use std::os::unix::process::CommandExt;
use std::{
ffi::CStr,
process::Command,
};
use std::{ffi::CStr, process::Command};
use crate::{
defs,
@ -188,7 +185,7 @@ pub fn root_shell() -> Result<()> {
if let Some(pw) = pw {
let home = unsafe { CStr::from_ptr(pw.pw_dir) };
let pw_name = unsafe { CStr::from_ptr(pw.pw_name)};
let pw_name = unsafe { CStr::from_ptr(pw.pw_name) };
let home = home.to_string_lossy();
let pw_name = pw_name.to_string_lossy();