Skip to content

Commit

Permalink
Auto merge of #84845 - wcampbell0x2a:clippy-redundant-field-names, r=…
Browse files Browse the repository at this point in the history
…joshtriplett

[clippy] remove redundant field names
  • Loading branch information
bors committed May 3, 2021
2 parents 2428cc4 + 962c341 commit e327a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/num/bignum.rs
Expand Up @@ -119,7 +119,7 @@ macro_rules! define_bignum {
pub fn from_small(v: $ty) -> $name {
let mut base = [0; $n];
base[0] = v;
$name { size: 1, base: base }
$name { size: 1, base }
}

/// Makes a bignum from `u64` value.
Expand All @@ -131,7 +131,7 @@ macro_rules! define_bignum {
v >>= <$ty>::BITS;
sz += 1;
}
$name { size: sz, base: base }
$name { size: sz, base }
}

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

0 comments on commit e327a82

Please sign in to comment.