Skip to content

Commit

Permalink
Satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverbear committed Aug 15, 2018
1 parent fca5a21 commit b0004c2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/log_unstable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ mod test {
for (entries, offset, snapshot, wok, windex) in tests {
let u = Unstable {
entries: entries.map_or(vec![], |entry| vec![entry]),
offset: offset,
snapshot: snapshot,
offset,
snapshot,
..Default::default()
};
let index = u.maybe_first_index();
Expand All @@ -244,8 +244,8 @@ mod test {
for (entries, offset, snapshot, wok, windex) in tests {
let u = Unstable {
entries: entries.map_or(vec![], |entry| vec![entry]),
offset: offset,
snapshot: snapshot,
offset,
snapshot,
..Default::default()
};
let index = u.maybe_last_index();
Expand Down Expand Up @@ -305,8 +305,8 @@ mod test {
for (entries, offset, snapshot, index, wok, wterm) in tests {
let u = Unstable {
entries: entries.map_or(vec![], |entry| vec![entry]),
offset: offset,
snapshot: snapshot,
offset,
snapshot,
..Default::default()
};
let term = u.maybe_term(index);
Expand Down Expand Up @@ -402,9 +402,9 @@ mod test {

for (entries, offset, snapshot, index, term, woffset, wlen) in tests {
let mut u = Unstable {
entries: entries,
offset: offset,
snapshot: snapshot,
entries,
offset,
snapshot,
..Default::default()
};
u.stable_to(index, term);
Expand Down Expand Up @@ -469,9 +469,9 @@ mod test {

for (entries, offset, snapshot, to_append, woffset, wentries) in tests {
let mut u = Unstable {
entries: entries,
offset: offset,
snapshot: snapshot,
entries,
offset,
snapshot,
..Default::default()
};
u.truncate_and_append(&to_append);
Expand Down

0 comments on commit b0004c2

Please sign in to comment.