[repo] Lab relay: compile fixes after the first build (clippy, fmt); 28 unit tests pass
This commit is contained in:
@@ -61,6 +61,7 @@ impl Rewriter {
|
||||
}
|
||||
|
||||
/// Bytes currently held back.
|
||||
#[cfg(test)]
|
||||
pub fn held(&self) -> usize {
|
||||
self.held.len()
|
||||
}
|
||||
@@ -92,7 +93,7 @@ mod tests {
|
||||
fn replaces_in_one_chunk() {
|
||||
let (out, n) = run(&mut lab(), &[ANSWER]);
|
||||
assert_eq!(n, 1);
|
||||
assert_eq!(out, ANSWER.to_vec().iter().copied().collect::<Vec<_>>().replace_all_for_test());
|
||||
assert_eq!(out, ANSWER.to_vec().replace_all_for_test());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user