lupyuen commented on PR #2437: URL: https://github.com/apache/nuttx-apps/pull/2437#issuecomment-2213430064
@rushabhvg Sorry `rustfmt` is super particular with our whitespace and blank lines. Could you do the following: 1. Overwrite Rust Blinky with this version that agrees with `rustfmt`: https://github.com/lupyuen2/wip-nuttx-apps/blob/gpio7/examples/hello_rust/hello_rust_main.rs 2. Run `rustfmt`. It should not show anything: ```bash $ rustfmt --edition 2021 --check hello_rust_main.rs [should not show anything] $ ``` 3. There should be a blank line at the end of the file. Otherwise `rustfmt` will fail: ```bash $ rustfmt --edition 2021 --check hello_rust_main.rs 0 } + [rustfmt needs a blank line] ``` 4. Commit the changes. Squash the commits into one single commit. Thank you so much! :-) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
