We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0d8ce9 commit 1209946Copy full SHA for 1209946
src/byteorder.rs
@@ -538,12 +538,12 @@ mod tests {
538
macro_rules! impl_traits {
539
($name:ident, $native:ident, $bytes:expr, $sign:ident) => {
540
impl Native for $native {
541
- // For some types, `0 as _` is required (for example, when
+ // For some types, `0 as $native` is required (for example, when
542
// `$native` is a floating-point type; `0` is an integer), but
543
// for other types, it's a trivial cast. In all cases, Clippy
544
// thinks it's dangerous.
545
#[allow(trivial_numeric_casts, clippy::as_conversions)]
546
- const ZERO: $native = 0 as _;
+ const ZERO: $native = 0 as $native;
547
const MAX_VALUE: $native = $native::MAX;
548
549
fn rand() -> $native {
0 commit comments