identifiers-validation: Ensure the Error type doesn't get too big
This commit is contained in:
parent
c3756aafc5
commit
294506540d
@ -172,3 +172,15 @@ pub enum MatrixUriError {
|
|||||||
#[error("unknown query item")]
|
#[error("unknown query item")]
|
||||||
UnknownQueryItem,
|
UnknownQueryItem,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use std::mem::size_of;
|
||||||
|
|
||||||
|
use super::Error;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn small_error_type() {
|
||||||
|
assert!(size_of::<Error>() <= 8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user