Invert build.rs cfgs in serde_derive

This commit is contained in:
Taiki Endo
2022-07-21 01:15:37 +09:00
parent a0eb83a5d4
commit efaafd4458
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -12,10 +12,10 @@ pub fn wrap_in_const(
) -> TokenStream {
let try_replacement = try::replacement();
let dummy_const = if cfg!(underscore_consts) {
format_ident!("_")
} else {
let dummy_const = if cfg!(no_underscore_consts) {
format_ident!("_IMPL_{}_FOR_{}", trait_, unraw(ty))
} else {
format_ident!("_")
};
let use_serde = match serde_path {