From aec125637b10797d81314053665c47f3381d9a70 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Fri, 14 Oct 2022 23:14:03 -0600 Subject: [PATCH] Fix format --- src/cli.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index fe55392..4a9c66d 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -4,8 +4,8 @@ use std::time::Duration; #[cfg(feature = "completions")] use anyhow::anyhow; use clap::{ - error::ErrorKind, value_parser, Arg, ArgAction, ArgGroup, - ArgMatches, Command, Parser, ValueEnum, + error::ErrorKind, value_parser, Arg, ArgAction, ArgGroup, ArgMatches, Command, Parser, + ValueEnum, }; #[cfg(feature = "completions")] use clap_complete::Shell; @@ -558,7 +558,11 @@ impl Opts { // unlikely fd will be running in such an environment, and even more unlikely someone would // be trying to use that many threads on such an environment, so I think panicing is an // appropriate way to handle that. - std::cmp::max(self.threads.map_or_else(num_cpus::get, |n| n.try_into().expect("too many threads")), 1) + std::cmp::max( + self.threads + .map_or_else(num_cpus::get, |n| n.try_into().expect("too many threads")), + 1, + ) } pub fn max_results(&self) -> Option {