Skip to content

[clippy] remove redundant field names #84845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/core/src/num/bignum.rs
Original file line number Diff line number Diff line change
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