Skip to content

Commit

Permalink
fix: remove lint #![deny(const_err)]
Browse files Browse the repository at this point in the history
This lint has been removed in Rust, see: rust-embedded#669 . We remove it here to avoid compile warnings.
  • Loading branch information
luojia65 committed Oct 15, 2022
1 parent ebce6fb commit 7014057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <WriteConstraint> element (see [v0.7.1] too).
- Remove lint #![deny(const_err)] as it is removed in Rust

## [v0.26.0] - 2022-10-07

Expand Down
1 change: 0 additions & 1 deletion src/generate/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
if !config.make_mod {
out.extend(quote! {
// Deny a subset of warnings
#![deny(const_err)]
#![deny(dead_code)]
#![deny(improper_ctypes)]
#![deny(missing_docs)]
Expand Down

0 comments on commit 7014057

Please sign in to comment.