Skip to content

Commit 91c8093

Browse files
author
Pascal Hertleif
committed
Update clippy lint name
1 parent e84b365 commit 91c8093

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
//! See [this post](https://www.kvaser.com/developer-blog/an-introduction-j1939-and-dbc-files/)
55
//! for an introduction.
66
7-
#![deny(missing_docs, clippy::integer_arithmetic)]
7+
#![deny(missing_docs)]
8+
#![deny(clippy::arithmetic_side_effects)]
89

910
use anyhow::{anyhow, ensure, Context, Result};
1011
use can_dbc::{Message, MultiplexIndicator, Signal, ValDescription, ValueDescription, DBC};
@@ -44,7 +45,7 @@ pub fn codegen(dbc_name: &str, dbc_content: &[u8], out: impl Write, debug: bool)
4445
&mut w,
4546
"#![allow(clippy::excessive_precision, clippy::manual_range_contains, clippy::absurd_extreme_comparisons)]"
4647
)?;
47-
writeln!(&mut w, "#![deny(clippy::integer_arithmetic)]")?;
48+
writeln!(&mut w, "#![deny(clippy::arithmetic_side_effects)]")?;
4849
writeln!(&mut w)?;
4950
writeln!(&mut w, "//! Message definitions from file `{:?}`", dbc_name)?;
5051
writeln!(&mut w, "//!")?;

testing/can-messages/src/messages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
clippy::manual_range_contains,
77
clippy::absurd_extreme_comparisons
88
)]
9-
#![deny(clippy::integer_arithmetic)]
9+
#![deny(clippy::arithmetic_side_effects)]
1010

1111
//! Message definitions from file `"example.dbc"`
1212
//!

0 commit comments

Comments
 (0)