mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Replaced explicit Default implementation for Seed with derive.
This commit is contained in:
parent
87ac22469d
commit
83b41fdbf0
1 changed files with 6 additions and 5 deletions
|
@ -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] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue