Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah-Kennedy committed Mar 7, 2024
1 parent 0d5df88 commit ef1672f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/error.rs
Expand Up @@ -655,10 +655,13 @@ mod tests {

#[test]
fn error_size_of() {
const PREFERRED: usize = mem::size_of::<usize>() * 8;

assert!(
mem::size_of::<Error>() <= mem::size_of::<usize>() * 4,
"Size of error was {}, we prefer <= 16",
mem::size_of::<Error>()
mem::size_of::<Error>() <= PREFERRED,
"Size of error was {}, we prefer <= {}",
mem::size_of::<Error>(),
PREFERRED
);
}

Expand Down

0 comments on commit ef1672f

Please sign in to comment.