pessimize/fmt.rs
1//! Pessimize implementations for core::fmt
2
3use crate::pessimize_zsts;
4use core::fmt::Error;
5
6pessimize_zsts!(allow(missing_docs) { Error: Error });
7
8#[cfg(test)]
9mod tests {
10 use super::*;
11 use crate::tests::test_value;
12
13 #[test]
14 fn error() {
15 test_value(Error);
16 }
17
18 // There is no error_optim test because Pessimize does not act as an
19 // optimization barrier for stateless ZSTs like fmt::Error.
20}