remove unnecessary-struct-initialization (#31486)
* remove unnecessary-struct-initialization * more remove unnecessary-struct-initialization --------- Co-authored-by: haoran <haoran.yi@solana.com>
This commit is contained in:
parent
f8bdeb8d05
commit
0f4293914c
|
@ -142,7 +142,7 @@ struct LeaderSlotPacketCountMetrics {
|
|||
|
||||
impl LeaderSlotPacketCountMetrics {
|
||||
fn new() -> Self {
|
||||
Self { ..Self::default() }
|
||||
Self::default()
|
||||
}
|
||||
|
||||
fn report(&self, id: u32, slot: Slot) {
|
||||
|
@ -330,7 +330,7 @@ pub(crate) struct VotePacketCountMetrics {
|
|||
|
||||
impl VotePacketCountMetrics {
|
||||
fn new() -> Self {
|
||||
Self { ..Self::default() }
|
||||
Self::default()
|
||||
}
|
||||
|
||||
fn report(&self, id: u32, slot: Slot) {
|
||||
|
|
|
@ -28,7 +28,7 @@ pub struct TransactionErrorMetrics {
|
|||
|
||||
impl TransactionErrorMetrics {
|
||||
pub fn new() -> Self {
|
||||
Self { ..Self::default() }
|
||||
Self::default()
|
||||
}
|
||||
|
||||
pub fn accumulate(&mut self, other: &TransactionErrorMetrics) {
|
||||
|
|
Loading…
Reference in New Issue