refactor(isolated-declarations): mark return struct as non exhaustive (#6374)

This will let us add fields to `IsolatedDeclarationsReturn` in the future without breaking consuming code.
This commit is contained in:
DonIsaac 2024-10-09 01:51:30 +00:00 committed by Don Isaac
parent f1bf0e8425
commit a504f96b06
2 changed files with 2 additions and 1 deletions

View file

@ -26,7 +26,7 @@ See more at [oxc.rs](https://oxc.rs)!
## VoidZero Inc.
Oxc is a project of [VoidZero](https://voidzero.dev/), see our annoucement [Announcing VoidZero - Next Generation Toolchain for JavaScript](https://voidzero.dev/blog).
Oxc is a project of [VoidZero](https://voidzero.dev/), see our announcement [Announcing VoidZero - Next Generation Toolchain for JavaScript](https://voidzero.dev/blog).
If you have requirements for JavaScript tools at scale, please [get in touch](https://forms.gle/WQgjyzYJpwurpxWKA)!

View file

@ -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>,