rustfmt the code

This commit is contained in:
Sylvestre Ledru
2024-01-26 19:16:15 +01:00
parent 4280abe67c
commit 7c7f5fa5d4
4 changed files with 9 additions and 12 deletions
+4 -5
View File
@@ -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)
}
}