mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 01:21:25 +00:00
ran cargo fmt
This commit is contained in:
1 parent
e38acdb683
commit
0e3bad1391
3 files changed
+14
-11
No files matched your search
+3
-2
@@ -231,7 +231,6 @@ pub struct Options {
|
||||
|
||||
/// Where input to the benchmarked command comes from
|
||||
pub command_input_policy: CommandInputPolicy,
|
||||
|
||||
}
|
||||
|
||||
impl Default for Options {
|
||||
@@ -392,7 +391,9 @@ impl Options {
|
||||
options.command_input_policy = if let Some(path_str) = matches.value_of("stdin-data") {
|
||||
let path = PathBuf::from(path_str);
|
||||
if !path.exists() {
|
||||
return Err(OptionsError::StdinDataFileDoesNotExist(path_str.to_string()))
|
||||
return Err(OptionsError::StdinDataFileDoesNotExist(
|
||||
path_str.to_string(),
|
||||
));
|
||||
}
|
||||
CommandInputPolicy::File(path)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user