Skip to content

Commit

Permalink
refactor(isolated-declarations): mark return struct as non exhaustive (
Browse files Browse the repository at this point in the history
…#6374)

This will let us add fields to `IsolatedDeclarationsReturn` in the future without breaking consuming code.
  • Loading branch information
DonIsaac committed Oct 9, 2024
1 parent 15dfc1d commit f5116d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_isolated_declarations/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub struct IsolatedDeclarationsOptions {
pub strip_internal: bool,
}

#[non_exhaustive]
pub struct IsolatedDeclarationsReturn<'a> {
pub program: Program<'a>,
pub errors: Vec<OxcDiagnostic>,
Expand Down

0 comments on commit f5116d7

Please sign in to comment.