Skip to content

Commit

Permalink
Merge pull request #516 from nicoburns/remove-non-exhaustive
Browse files Browse the repository at this point in the history
Make options structs exhaustive
  • Loading branch information
kivikakk authored Jan 4, 2025
2 parents 17db3c3 + 8c1f750 commit 21e1741
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ pub(crate) enum WikiLinksMode {
TitleFirst,
}

#[non_exhaustive]
#[derive(Default, Debug, Clone)]
#[cfg_attr(feature = "bon", derive(Builder))]
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
Expand Down Expand Up @@ -655,7 +654,6 @@ impl<'c> ExtensionOptions<'c> {
}
}

#[non_exhaustive]
#[derive(Default, Clone, Debug)]
#[cfg_attr(feature = "bon", derive(Builder))]
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
Expand Down Expand Up @@ -745,7 +743,6 @@ pub struct ParseOptions<'c> {
pub broken_link_callback: Option<Arc<dyn BrokenLinkCallback + 'c>>,
}

#[non_exhaustive]
#[derive(Default, Debug, Clone, Copy)]
#[cfg_attr(feature = "bon", derive(Builder))]
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
Expand Down Expand Up @@ -1069,7 +1066,6 @@ pub struct RenderOptions {
pub ol_width: usize,
}

#[non_exhaustive]
#[derive(Default, Debug, Clone)]
#[cfg_attr(feature = "bon", derive(Builder))]
/// Umbrella plugins struct.
Expand All @@ -1079,7 +1075,6 @@ pub struct Plugins<'p> {
pub render: RenderPlugins<'p>,
}

#[non_exhaustive]
#[derive(Default, Clone)]
#[cfg_attr(feature = "bon", derive(Builder))]
/// Plugins for alternative rendering.
Expand Down

0 comments on commit 21e1741

Please sign in to comment.