Made __non_exhaustive fields #[serde(skip)]

This commit is contained in:
Michael Bryan 2018-10-20 11:21:24 +08:00
parent 29f8b791f1
commit 89ea60e7a5
No known key found for this signature in database
GPG Key ID: E9C602B0D9A998DC
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ pub struct PreprocessorContext {
pub renderer: String,
/// The calling `mdbook` version.
pub mdbook_version: String,
#[serde(skip)]
__non_exhaustive: (),
}

View File

@ -64,6 +64,7 @@ pub struct RenderContext {
/// renderers to cache intermediate results, this directory is not
/// guaranteed to be empty or even exist.
pub destination: PathBuf,
#[serde(skip)]
__non_exhaustive: (),
}