forked from extern/nushell
Merge pull request #327 from jonathandturner/cleanup_ps
Cleanup unneeded compiler flag
This commit is contained in:
commit
3c7ca8c403
@ -2,8 +2,7 @@ use crate::commands::WholeStreamCommand;
|
|||||||
use crate::errors::ShellError;
|
use crate::errors::ShellError;
|
||||||
use crate::object::process::process_dict;
|
use crate::object::process::process_dict;
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
#[allow(unused)]
|
use sysinfo::SystemExt;
|
||||||
use sysinfo::{RefreshKind, SystemExt};
|
|
||||||
|
|
||||||
pub struct PS;
|
pub struct PS;
|
||||||
|
|
||||||
@ -35,6 +34,7 @@ fn ps(args: CommandArgs, _registry: &CommandRegistry) -> Result<OutputStream, Sh
|
|||||||
|
|
||||||
#[cfg(not(target_os = "linux"))]
|
#[cfg(not(target_os = "linux"))]
|
||||||
{
|
{
|
||||||
|
use sysinfo::RefreshKind;
|
||||||
let mut sy = sysinfo::System::new_with_specifics(RefreshKind::new().with_processes());
|
let mut sy = sysinfo::System::new_with_specifics(RefreshKind::new().with_processes());
|
||||||
sy.refresh_processes();
|
sy.refresh_processes();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user