Skip to content

Commit e327a82

Browse files
committed
Auto merge of rust-lang#84845 - wcampbell0x2a:clippy-redundant-field-names, r=joshtriplett
[clippy] remove redundant field names
2 parents 2428cc4 + 962c341 commit e327a82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/num/bignum.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ macro_rules! define_bignum {
119119
pub fn from_small(v: $ty) -> $name {
120120
let mut base = [0; $n];
121121
base[0] = v;
122-
$name { size: 1, base: base }
122+
$name { size: 1, base }
123123
}
124124

125125
/// Makes a bignum from `u64` value.
@@ -131,7 +131,7 @@ macro_rules! define_bignum {
131131
v >>= <$ty>::BITS;
132132
sz += 1;
133133
}
134-
$name { size: sz, base: base }
134+
$name { size: sz, base }
135135
}
136136

137137
/// Returns the internal digits as a slice `[a, b, c, ...]` such that the numeric

0 commit comments

Comments
 (0)