cargo: fmt
This commit is contained in:
parent
99d0c3dad3
commit
a6e23a8bd0
|
@ -1,5 +1,5 @@
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use owo_colors::{OwoColorize, AnsiColors::*};
|
use owo_colors::{AnsiColors::*, OwoColorize};
|
||||||
use std::{env::var, path::PathBuf};
|
use std::{env::var, path::PathBuf};
|
||||||
use sysinfo::System;
|
use sysinfo::System;
|
||||||
use whoami::*;
|
use whoami::*;
|
||||||
|
@ -95,9 +95,7 @@ fn main() {
|
||||||
|
|
||||||
if !args.hide_colours && !args.ascii_only {
|
if !args.hide_colours && !args.ascii_only {
|
||||||
println!();
|
println!();
|
||||||
let colors = [
|
let colors = [Black, Red, Green, Yellow, Blue, Magenta, Cyan, White];
|
||||||
Black, Red, Green, Yellow, Blue, Magenta, Cyan, White
|
|
||||||
];
|
|
||||||
let mut color_string: String = " ".to_string();
|
let mut color_string: String = " ".to_string();
|
||||||
for color in colors {
|
for color in colors {
|
||||||
color_string.push_str(&format!("{:>3}", "●".color(color)));
|
color_string.push_str(&format!("{:>3}", "●".color(color)));
|
||||||
|
|
Loading…
Reference in a new issue