rustfmt the code
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
// For the full copyright and license information, please view the LICENSE
|
||||
// file that was distributed with this source code.
|
||||
|
||||
use regex::Regex;
|
||||
use uucore::{error::UResult, format_usage, help_about, help_usage};
|
||||
use clap::{crate_version, Command};
|
||||
use std::{fs};
|
||||
use regex::Regex;
|
||||
use std::fs;
|
||||
use sysinfo::System;
|
||||
use uucore::{error::UResult, format_usage, help_about, help_usage};
|
||||
|
||||
const ABOUT: &str = help_about!("lscpu.md");
|
||||
const USAGE: &str = help_usage!("lscpu.md");
|
||||
@@ -41,11 +41,10 @@ fn get_architecture() -> String {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn uu_app() -> Command {
|
||||
Command::new(uucore::util_name())
|
||||
.version(crate_version!())
|
||||
.about(ABOUT)
|
||||
.override_usage(format_usage(USAGE))
|
||||
.infer_long_args(true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user