mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
cargo fmt
This commit is contained in:
parent
2b8e743f35
commit
7ce052be37
3 changed files with 17 additions and 17 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue