diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-15 17:13:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-15 17:13:37 +0000 |
| commit | 8b53b9d10cd5fee85d98cd337b478cf3d3305b12 (patch) | |
| tree | 896d527bfd204f788eacc3dc791966fb88e287be /macros/src/codegen/post_init.rs | |
| parent | 355cb82d0693fe108ac28ec8a0d77e8aab4e6e06 (diff) | |
| parent | 21253297e4a11a1d9f9c5069578cf9c69a3de31b (diff) | |
Merge #393
393: Implement all clippy suggestions r=korken89 a=AfoHT
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
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 c35c697..329d700 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 |
