From 630c52332eb1127ddf921bc8e2109df3d6a5caaf Mon Sep 17 00:00:00 2001 From: Luo Jia / Zhouqi Jiang Date: Sat, 15 Oct 2022 11:20:48 +0800 Subject: [PATCH] fix: remove lint #![deny(const_err)] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This lint has been removed in Rust, see: #669 . We remove it here to avoid compile warnings. Signed-off-by: Luo Jia Co-authored-by: Emil Gardström --- CHANGELOG.md | 3 ++- src/generate/device.rs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b21b66fc..26e24bc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Update `clap` to 4.0, use `irx-config` instead of `clap_conf` - Add #[must_use] to prevent hanging field writers -- remove explicit deref in `generic.rs` since it's done by auto-deref +- Remove explicit deref in `generic.rs` since it's done by auto-deref - Make writing raw bits to a whole register safe if the SVD indicates so through the element (see [v0.7.1] too). +- Remove lint #![deny(const_err)] as it is a hard error in Rust now ## [v0.26.0] - 2022-10-07 diff --git a/src/generate/device.rs b/src/generate/device.rs index 11bf0a04..17eeef42 100644 --- a/src/generate/device.rs +++ b/src/generate/device.rs @@ -52,7 +52,6 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result