mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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]);
|
pub struct Seed([u8; 32]);
|
||||||
|
|
||||||
impl Default for Seed {
|
// impl Default for Seed {
|
||||||
fn default() -> Self {
|
// fn default() -> Self {
|
||||||
Seed([0; 32])
|
// Seed([0; 32])
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
impl AsMut<[u8]> for Seed {
|
impl AsMut<[u8]> for Seed {
|
||||||
fn as_mut(&mut self) -> &mut [u8] {
|
fn as_mut(&mut self) -> &mut [u8] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue