diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-02-16 00:26:07 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-02-16 00:26:07 +0100 |
| commit | 7ce052be372ad5e3671e4f470ac552db075162fb (patch) | |
| tree | a65375257cd5b8e7e52d974216fadaa7bdd40ba2 /macros/src/check.rs | |
| parent | 2b8e743f35a69b9b09a4de4c346eb9015c6b45ea (diff) | |
cargo fmt
Diffstat (limited to 'macros/src/check.rs')
| -rw-r--r-- | macros/src/check.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/src/check.rs b/macros/src/check.rs index 045d152..464e280 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( |
