cargo fmt

This commit is contained in:
Jorge Aparicio 2019-02-16 00:26:07 +01:00
parent 2b8e743f35
commit 7ce052be37
3 changed files with 17 additions and 17 deletions

View file

@ -38,8 +38,8 @@ pub fn app(app: &App) -> parse::Result<()> {
// Check that all late resources have been initialized in `#[init]` if `init` has signature
// `fn()`
if !app.init.returns_late_resources {
for res in app
.resources
for res in
app.resources
.iter()
.filter_map(|(name, res)| if res.expr.is_none() { Some(name) } else { None })
{

View file

@ -47,7 +47,9 @@ pub struct Priority {
impl Priority {
#[inline(always)]
pub unsafe fn new(value: u8) -> Self {
Priority { inner: Cell::new(value)}
Priority {
inner: Cell::new(value),
}
}
// these two methods are used by claim (see below) but can't be used from the RTFM application

View file

@ -38,8 +38,7 @@ fn cfail() {
let f = f.unwrap().path();
let name = f.file_stem().unwrap().to_str().unwrap();
assert!(
Command::new("rustc")
assert!(Command::new("rustc")
.args(s.split_whitespace())
.arg(f.display().to_string())
.arg("-o")
@ -48,8 +47,7 @@ fn cfail() {
.arg("linker=true")
.status()
.unwrap()
.success()
);
.success());
}
config.target_rustcflags = Some(s);