From 83b41fdbf07c65ae60e5fca10e98eeb687bdff5d Mon Sep 17 00:00:00 2001 From: michaelgrigoryan25 <56165400+michaelgrigoryan25@users.noreply.github.com> Date: Thu, 1 Dec 2022 18:21:54 +0400 Subject: [PATCH] Replaced explicit Default implementation for Seed with derive. --- components/rand/lib.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/rand/lib.rs b/components/rand/lib.rs index d9a8765c993..e8ed951d34f 100644 --- a/components/rand/lib.rs +++ b/components/rand/lib.rs @@ -63,13 +63,14 @@ impl RngCore for ServoRng { } } +#[derive(Default)] pub struct Seed([u8; 32]); -impl Default for Seed { - fn default() -> Self { - Seed([0; 32]) - } -} +// impl Default for Seed { +// fn default() -> Self { +// Seed([0; 32]) +// } +// } impl AsMut<[u8]> for Seed { fn as_mut(&mut self) -> &mut [u8] {