From 11883050eb2d2bdb23efa4ed1c601075bef34ec2 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sun, 24 Mar 2024 14:06:39 +0000 Subject: [PATCH] cargo: fmt --- src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 45f31b6..bdab479 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,8 @@ +use clap::Parser; use colored::Colorize; use std::env; use sysinfo::System; use whoami::*; -use clap::Parser; /// A simple and adorable sysinfo utility written in Rust. #[derive(Parser, Debug)] @@ -16,7 +16,7 @@ struct Args { #[arg(short = 'x', long)] arch: bool, - /// Hide terminal colours + /// Hide terminal colours #[arg(short = 'z', long, default_value_t = false)] hide_colours: bool, } @@ -64,7 +64,9 @@ fn main() { if !args.hide_colours && !args.ascii_only { println!(); - let colors = ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"]; + let colors = [ + "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", + ]; let mut color_string: String = " ".to_owned(); for color in colors { color_string.push_str(&format!("{:>3}", "●".color(color)));