aboutsummaryrefslogtreecommitdiff
path: root/macros/src/check.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2019-02-16 00:26:07 +0100
committerGravatar Jorge Aparicio <jorge@japaric.io> 2019-02-16 00:26:07 +0100
commit7ce052be372ad5e3671e4f470ac552db075162fb (patch)
treea65375257cd5b8e7e52d974216fadaa7bdd40ba2 /macros/src/check.rs
parent2b8e743f35a69b9b09a4de4c346eb9015c6b45ea (diff)
downloadrtic-7ce052be372ad5e3671e4f470ac552db075162fb.tar.gz
rtic-7ce052be372ad5e3671e4f470ac552db075162fb.tar.zst
rtic-7ce052be372ad5e3671e4f470ac552db075162fb.zip
cargo fmt
Diffstat (limited to 'macros/src/check.rs')
-rw-r--r--macros/src/check.rs8
1 files changed, 4 insertions, 4 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(