Specify the cfg in which 'tri!' is used

This commit is contained in:
David Tolnay
2025-09-13 10:21:32 -07:00
parent 35c963101b
commit b6c7ce8ec3
+1 -1
View File
@@ -221,7 +221,7 @@ mod lib {
// performed implicitly by the `?` operator or the standard library's `try!`
// macro. This simplified macro gives a 5.5% improvement in compile time
// compared to standard `try!`, and 9% improvement compared to `?`.
#[allow(unused_macros)]
#[cfg(not(no_serde_derive))]
macro_rules! tri {
($expr:expr) => {
match $expr {