Skip to content

Commit 8328212

Browse files
committed
Run cargo fmt
1 parent 7515dee commit 8328212

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

src/args.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,13 @@ where
201201
A: Iterator<Item = String>,
202202
{
203203
let mut arg_iter = args.into_iter().fuse();
204-
let executable = PathBuf::from(arg_iter.next().expect("excepted path to kernel executable as first argument")).canonicalize().expect("Failed to canonicalize executable path");
204+
let executable = PathBuf::from(
205+
arg_iter
206+
.next()
207+
.expect("excepted path to kernel executable as first argument"),
208+
)
209+
.canonicalize()
210+
.expect("Failed to canonicalize executable path");
205211
let mut run_command = None;
206212

207213
loop {

src/config.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ pub(crate) fn read_config_inner(manifest_path: PathBuf) -> Result<Config, ErrorS
4040
}
4141
.into());
4242
}
43-
Some(metadata) => metadata.as_table().ok_or(format!(
44-
"Bootimage configuration invalid: {:?}",
45-
metadata
46-
))?,
43+
Some(metadata) => metadata
44+
.as_table()
45+
.ok_or(format!("Bootimage configuration invalid: {:?}", metadata))?,
4746
};
4847

4948
let mut config = ConfigBuilder {
@@ -67,8 +66,7 @@ pub(crate) fn read_config_inner(manifest_path: PathBuf) -> Result<Config, ErrorS
6766
(key, value) => Err(format!(
6867
"unexpected `package.metadata.bootimage` \
6968
key `{}` with value `{}`",
70-
key,
71-
value
69+
key, value
7270
))?,
7371
}
7472
}

src/subcommand/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{args::Args, config, subcommand::build, ErrorString};
2-
use std::{io::Write, path::PathBuf, time::Duration, fs, io, process};
32
use rayon::prelude::*;
3+
use std::{fs, io, io::Write, path::PathBuf, process, time::Duration};
44
use wait_timeout::ChildExt;
55

66
pub(crate) fn test(mut args: Args) -> Result<(), ErrorString> {

0 commit comments

Comments
 (0)