Skip to content

Commit

Permalink
refactor: mark Fix as non_exhaustive
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Jul 12, 2024
1 parent f6a4ef6 commit 881648d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/oxc_linter/src/fixer/fix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::borrow::Cow;
use oxc_span::{Span, SPAN};

#[derive(Debug, Clone)]
#[non_exhaustive]
pub struct Fix<'a> {
pub content: Cow<'a, str>,
pub span: Span,
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/fixer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use oxc_span::{GetSpan, Span};

use crate::LintContext;

pub use fix::{Fix, CompositeFix};
pub use fix::{CompositeFix, Fix};

/// Inspired by ESLint's [`RuleFixer`].
///
Expand Down

0 comments on commit 881648d

Please sign in to comment.