rustfmt the code
This commit is contained in:
parent
3dcdc952d5
commit
e99a1184d0
@ -1,6 +1,6 @@
|
||||
use sysinfo::{System};
|
||||
use regex::Regex;
|
||||
use std::fs;
|
||||
use sysinfo::System;
|
||||
|
||||
fn main() {
|
||||
let system = System::new_all();
|
||||
|
@ -1,11 +1,10 @@
|
||||
use std::env;
|
||||
use std::process;
|
||||
use std::str::FromStr;
|
||||
use libc::{c_char, c_int, execvp, PRIO_PROCESS};
|
||||
use std::env;
|
||||
use std::io::{Error, Write};
|
||||
use std::process;
|
||||
use std::str::FromStr;
|
||||
|
||||
|
||||
fn main() {
|
||||
fn main() {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
|
||||
if args.len() != 3 {
|
||||
@ -29,6 +28,4 @@ use std::io::{Error, Write};
|
||||
}
|
||||
|
||||
println!("Nice value of process {} set to {}", pid, nice_value);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user