Skip to content

Commit

Permalink
Merge pull request #82 from waywardmonkeys/suppress-identity-op-lint
Browse files Browse the repository at this point in the history
clippy: Suppress `identity_op` lint.
  • Loading branch information
RalfJung authored Nov 14, 2023
2 parents 8561baa + ef37d67 commit 804aaab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/offset_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ macro_rules! offset_of_union {

#[cfg(test)]
mod tests {
#![cfg_attr(allow_clippy, allow(clippy::identity_op))] // For `... + 0` constructs below.

#[test]
fn offset_simple() {
#[repr(C)]
Expand Down

0 comments on commit 804aaab

Please sign in to comment.