diff options
author | 2020-10-13 14:16:33 +0000 | |
---|---|---|
committer | 2020-10-15 17:09:27 +0000 | |
commit | 21253297e4a11a1d9f9c5069578cf9c69a3de31b (patch) | |
tree | 896d527bfd204f788eacc3dc791966fb88e287be /macros/src/codegen/post_init.rs | |
parent | 355cb82d0693fe108ac28ec8a0d77e8aab4e6e06 (diff) | |
download | rtic-21253297e4a11a1d9f9c5069578cf9c69a3de31b.tar.gz rtic-21253297e4a11a1d9f9c5069578cf9c69a3de31b.tar.zst rtic-21253297e4a11a1d9f9c5069578cf9c69a3de31b.zip |
Implement all clippy suggestions
Diffstat (limited to 'macros/src/codegen/post_init.rs')
-rw-r--r-- | macros/src/codegen/post_init.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/codegen/post_init.rs b/macros/src/codegen/post_init.rs index c35c6976..329d700e 100644 --- a/macros/src/codegen/post_init.rs +++ b/macros/src/codegen/post_init.rs @@ -9,7 +9,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> Vec<TokenStream2> { let mut stmts = vec![]; // Initialize late resources - if analysis.late_resources.len() > 0 { + if !analysis.late_resources.is_empty() { // BTreeSet wrapped in a vector for name in analysis.late_resources.first().unwrap() { // If it's live |