aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros/src
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2023-11-01 20:41:28 +0100
committerEmil Fresk <emil.fresk@gmail.com>2023-11-01 19:52:57 +0000
commit3c9a8f290d0615dd88c4f9a6e7660bdc7ce6fc9f (patch)
treef4fc4ff33f2477d76f13747f6041f870b9db84bb /rtic-macros/src
parent52aa56e265f62252ce0eefeebcf100fdfd7be8c6 (diff)
Fix CI with async_fn_in_trait not being a feature
Diffstat (limited to 'rtic-macros/src')
-rw-r--r--rtic-macros/src/syntax/analyze.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtic-macros/src/syntax/analyze.rs b/rtic-macros/src/syntax/analyze.rs
index 57f9f2c..3e5e80b 100644
--- a/rtic-macros/src/syntax/analyze.rs
+++ b/rtic-macros/src/syntax/analyze.rs
@@ -193,7 +193,7 @@ pub(crate) fn app(app: &App) -> Result<Analysis, syn::Error> {
// Collect errors if any and return/halt
if !error.is_empty() {
- let mut err = error.get(0).unwrap().clone();
+ let mut err = error.first().unwrap().clone();
error.iter().for_each(|e| err.combine(e.clone()));
return Err(err);
}