From a504f96b068a60e7ffbfc94ee0b98865fb7bb225 Mon Sep 17 00:00:00 2001 From: DonIsaac <22823424+DonIsaac@users.noreply.github.com> Date: Wed, 9 Oct 2024 01:51:30 +0000 Subject: [PATCH] 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. --- README.md | 2 +- crates/oxc_isolated_declarations/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42aa7653b1642..14ea36ca48ce3 100644 --- a/README.md +++ b/README.md @@ -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)! diff --git a/crates/oxc_isolated_declarations/src/lib.rs b/crates/oxc_isolated_declarations/src/lib.rs index ee61178fb7340..a057a516a5d85 100644 --- a/crates/oxc_isolated_declarations/src/lib.rs +++ b/crates/oxc_isolated_declarations/src/lib.rs @@ -44,6 +44,7 @@ pub struct IsolatedDeclarationsOptions { pub strip_internal: bool, } +#[non_exhaustive] pub struct IsolatedDeclarationsReturn<'a> { pub program: Program<'a>, pub errors: Vec,