mirror of
https://github.com/nushell/nushell
synced 2024-12-27 13:33:16 +00:00
Cleanup unneeded compiler flag
This commit is contained in:
parent
23ef76a86b
commit
8e5744cf9b
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,7 @@ use crate::commands::WholeStreamCommand;
|
|||
use crate::errors::ShellError;
|
||||
use crate::object::process::process_dict;
|
||||
use crate::prelude::*;
|
||||
#[allow(unused)]
|
||||
use sysinfo::{RefreshKind, SystemExt};
|
||||
use sysinfo::SystemExt;
|
||||
|
||||
pub struct PS;
|
||||
|
||||
|
@ -35,6 +34,7 @@ fn ps(args: CommandArgs, _registry: &CommandRegistry) -> Result<OutputStream, Sh
|
|||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
{
|
||||
use sysinfo::RefreshKind;
|
||||
let mut sy = sysinfo::System::new_with_specifics(RefreshKind::new().with_processes());
|
||||
sy.refresh_processes();
|
||||
|
||||
|
|
Loading…
Reference in a new issue