aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macros/src/check.rs8
-rw-r--r--src/export.rs4
-rw-r--r--tests/compiletest.rs22
3 files changed, 17 insertions, 17 deletions
diff --git a/macros/src/check.rs b/macros/src/check.rs
index 045d152f..464e280a 100644
--- a/macros/src/check.rs
+++ b/macros/src/check.rs
@@ -38,10 +38,10 @@ 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
- .iter()
- .filter_map(|(name, res)| if res.expr.is_none() { Some(name) } else { None })
+ for res in
+ app.resources
+ .iter()
+ .filter_map(|(name, res)| if res.expr.is_none() { Some(name) } else { None })
{
if app.init.assigns.iter().all(|assign| assign.left != *res) {
return Err(parse::Error::new(
diff --git a/src/export.rs b/src/export.rs
index 0d746614..6eae65f2 100644
--- a/src/export.rs
+++ b/src/export.rs
@@ -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
diff --git a/tests/compiletest.rs b/tests/compiletest.rs
index acc89546..58702eec 100644
--- a/tests/compiletest.rs
+++ b/tests/compiletest.rs
@@ -38,18 +38,16 @@ fn cfail() {
let f = f.unwrap().path();
let name = f.file_stem().unwrap().to_str().unwrap();
- assert!(
- Command::new("rustc")
- .args(s.split_whitespace())
- .arg(f.display().to_string())
- .arg("-o")
- .arg(td.path().join(name).display().to_string())
- .arg("-C")
- .arg("linker=true")
- .status()
- .unwrap()
- .success()
- );
+ assert!(Command::new("rustc")
+ .args(s.split_whitespace())
+ .arg(f.display().to_string())
+ .arg("-o")
+ .arg(td.path().join(name).display().to_string())
+ .arg("-C")
+ .arg("linker=true")
+ .status()
+ .unwrap()
+ .success());
}
config.target_rustcflags = Some(s);