Use explicit re-export of serde_derive to give rustc more info

rustc will start looking behind `#[cfg(FALSE)]` items to start giving
better diagnostics. By using an explicit re-export instead of a glob
export, we tell rustc that `Deserialize` and `Serialize` exist here.
This commit is contained in:
nils
2023-03-14 08:11:38 +01:00
parent 2ba406726f
commit f42b2581da
+1 -1
View File
@@ -340,7 +340,7 @@ mod std_error;
extern crate serde_derive;
#[cfg(feature = "serde_derive")]
#[doc(hidden)]
pub use serde_derive::*;
pub use serde_derive::{Deserialize, Serialize};
#[cfg(all(not(no_serde_derive), any(feature = "std", feature = "alloc")))]
mod actually_private {