From 3c9a8f290d0615dd88c4f9a6e7660bdc7ce6fc9f Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 1 Nov 2023 20:41:28 +0100 Subject: Fix CI with async_fn_in_trait not being a feature --- rtic-macros/src/syntax/analyze.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rtic-macros/src') 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 { // 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); } -- cgit v1.2.3