mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-30 10:57:56 +00:00
Merge pull request #2967 from dtolnay/tricfg
Specify the cfg in which `tri!` is used
This commit is contained in:
+1
-1
@@ -221,7 +221,7 @@ mod lib {
|
|||||||
// performed implicitly by the `?` operator or the standard library's `try!`
|
// performed implicitly by the `?` operator or the standard library's `try!`
|
||||||
// macro. This simplified macro gives a 5.5% improvement in compile time
|
// macro. This simplified macro gives a 5.5% improvement in compile time
|
||||||
// compared to standard `try!`, and 9% improvement compared to `?`.
|
// compared to standard `try!`, and 9% improvement compared to `?`.
|
||||||
#[allow(unused_macros)]
|
#[cfg(not(no_serde_derive))]
|
||||||
macro_rules! tri {
|
macro_rules! tri {
|
||||||
($expr:expr) => {
|
($expr:expr) => {
|
||||||
match $expr {
|
match $expr {
|
||||||
|
|||||||
Reference in New Issue
Block a user