make some enums non-exhaustive (#2140)

This commit is contained in:
Evan Almloff authored and GitHub committed 2024-03-26 19:14:48 -07:00
1 parent 460a685fa3
commit dadbab5d72
16 files changed
+28 -11

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ pub struct StringChain {
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub enum Segment {
pub(crate) enum Segment {
Attr(usize),
Node(usize),
PreRendered(String),
+1
View File
@@ -272,6 +272,7 @@ impl DerefMut for WriteBuffer {
/// An error that can occur while rendering a route or retrieving a cached route.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum IncrementalRendererError {
/// An formatting error occurred while rendering a route.
#[error("RenderError: {0}")]