Skip to content

Commit 1b802cd

Browse files
committed
test: fix logger tests on 32-bit platforms
1 parent 141c7a5 commit 1b802cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ mod tests {
334334
assert_eq!(str::from_utf8(buf.filled()), Ok("Hello World!"));
335335

336336
// overflow results in truncated output
337-
write!(&mut buf, " This is a test, {}", usize::MAX).unwrap();
337+
write!(&mut buf, " This is a test, {}", u64::MAX).unwrap();
338338
assert_eq!(
339339
str::from_utf8(buf.filled()),
340340
Ok("Hello World! This is a test, 184")

0 commit comments

Comments
 (0)