identifiers-validation: Ensure the Error type doesn't get too big

This commit is contained in:
Jonas Platte 2022-03-30 13:11:47 +02:00 committed by Jonas Platte
parent c3756aafc5
commit 294506540d

View File

@ -172,3 +172,15 @@ pub enum MatrixUriError {
#[error("unknown query item")]
UnknownQueryItem,
}
#[cfg(test)]
mod tests {
use std::mem::size_of;
use super::Error;
#[test]
fn small_error_type() {
assert!(size_of::<Error>() <= 8);
}
}