Skip to content

Commit 395a988

Browse files
00xcJonathanWoollett-Light
authored andcommitted
serial: use Serial::writer() in tests
Use the new method instead of accessing the output buffer directly. Signed-off-by: Carlos López <[email protected]>
1 parent 7296434 commit 395a988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm-superio/src/serial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ mod tests {
807807
RAW_INPUT_BUF
808808
.iter()
809809
.for_each(|&c| serial.write(DATA_OFFSET, c).unwrap());
810-
assert_eq!(serial.out.as_slice(), &RAW_INPUT_BUF);
810+
assert_eq!(serial.writer().as_slice(), &RAW_INPUT_BUF);
811811
}
812812

813813
#[test]

0 commit comments

Comments
 (0)