From 37c9ee61942b6fd3557ab96f177c3a93f1219891 Mon Sep 17 00:00:00 2001 From: Pontus Andersson Date: Sun, 7 Sep 2025 16:32:32 +0200 Subject: [PATCH] Allow mismatched_lifetime_syntaxes lint on reg code Due to updated Rust toolchain the new `mismatched_lifetime_syntaxes`[1] lint is temporarily allowed on the generated svd2rust code for all the MCAN registers until the code has been regenerated and customized with a newer svd2rust version. [1]: https://doc.rust-lang.org/beta/nightly-rustc/rustc_lint/lifetime_syntax/static.MISMATCHED_LIFETIME_SYNTAXES.html --- mcan/src/reg.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/mcan/src/reg.rs b/mcan/src/reg.rs index 8274c9e..c8b2b54 100644 --- a/mcan/src/reg.rs +++ b/mcan/src/reg.rs @@ -1,6 +1,7 @@ //! Low-level access to peripheral registers #![allow(non_camel_case_types)] +#![allow(mismatched_lifetime_syntaxes)] pub mod generic; /// Blanket implementation trait that provides convenience method for recasting