Skip to content

Commit

Permalink
Run cargo fmt, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinR528 committed Oct 7, 2022
1 parent 6549668 commit b265280
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ use std::{
};

use clap::{
crate_authors, crate_name, crate_version, Arg, ArgAction, ArgMatches, Command, parser::ValueSource,
crate_authors, crate_name, crate_version, parser::ValueSource, Arg, ArgAction,
ArgMatches, Command,
};
use fmt::Config;
use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
Expand All @@ -25,7 +26,10 @@ const EXTRA_HELP: &str = "\
type IoResult<T> = Result<T, Box<dyn std::error::Error>>;

fn flag_set(flag: &str, matches: &ArgMatches) -> bool {
matches!(matches.value_source(flag), Some(ValueSource::CommandLine | ValueSource::EnvVariable))
matches!(
matches.value_source(flag),
Some(ValueSource::CommandLine | ValueSource::EnvVariable)
)
}

fn write_red<S: Display>(highlight: &str, msg: S) -> IoResult<()> {
Expand Down

0 comments on commit b265280

Please sign in to comment.