Skip to content

Commit

Permalink
[clippy] remove redundant field names
Browse files Browse the repository at this point in the history
Signed-off-by: wcampbell <wcampbell1995@gmail.com>
  • Loading branch information
wcampbell0x2a committed May 3, 2021
1 parent e10cbc3 commit 962c341
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 962c341

Please sign in to comment.