Consistent ordering of impl blocks

This commit is contained in:
Dirkjan Ochtman 2021-03-24 10:24:26 +01:00
parent 11a7e88b95
commit 0ce148db1e
1 changed files with 10 additions and 10 deletions

View File

@ -181,16 +181,6 @@ pub struct Search {
result: Vec<String>,
}
impl Default for Search {
fn default() -> Self {
Self {
memo: HashMap::default(),
best: [BitVec::default(); SEGMENT_SIZE],
result: Vec::new(),
}
}
}
impl Search {
fn clear(&mut self) {
self.memo.clear();
@ -201,6 +191,16 @@ impl Search {
}
}
impl Default for Search {
fn default() -> Self {
Self {
memo: HashMap::default(),
best: [BitVec::default(); SEGMENT_SIZE],
result: Vec::new(),
}
}
}
#[derive(Clone, Copy, Default)]
struct BitVec([u64; 4]);