Skip to content

Commit

Permalink
Add clippy lints to no_std build
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 committed Dec 2, 2024
1 parent a66b93c commit 899e79f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions crates/packet-forward/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
#![cfg_attr(not(test), no_std)]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
#![cfg_attr(
not(test),
deny(
missing_docs,
rust_2018_idioms,
clippy::cast_sign_loss,
clippy::cast_possible_truncation,
clippy::cast_possible_wrap,
clippy::cast_lossless,
clippy::arithmetic_side_effects,
clippy::dbg_macro,
clippy::print_stdout,
clippy::print_stderr
)
)]

extern crate alloc;

Expand Down Expand Up @@ -39,6 +54,7 @@ pub use self::msg::{Duration, ForwardMetadata, PacketMetadata};
#[doc(inline)]
pub use self::state::{InFlightPacket, InFlightPacketKey};

/// Type alias for an [`InFlightPacket`], to enhance code readability.
pub type RetryInFlightPacket = InFlightPacket;

struct NewInFlightPacket<'pkt> {
Expand Down

0 comments on commit 899e79f

Please sign in to comment.