Skip to content

Commit

Permalink
refactor(semantic, syntax, wasm): remove #![allow(non_snake_case)]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 14, 2024
1 parent 0f5e078 commit 4f9625c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions crates/oxc_semantic/src/reference.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]`
#![allow(non_snake_case)]

#[cfg(feature = "serialize")]
use serde::Serialize;
#[cfg(feature = "serialize")]
Expand Down
2 changes: 0 additions & 2 deletions crates/oxc_semantic/src/symbol.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(non_snake_case)] // Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]`

#[cfg(feature = "serialize")]
use serde::Serialize;
#[cfg(feature = "serialize")]
Expand Down
2 changes: 0 additions & 2 deletions crates/oxc_syntax/src/operator.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
//! ECMAScript operators.
//!
//! Not all operators are punctuation - some, such as `delete`, are keywords.
// Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]`
#![allow(non_snake_case)]
use oxc_allocator::CloneIn;
use oxc_ast_macros::ast;
Expand Down
3 changes: 0 additions & 3 deletions crates/oxc_wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]`
#![allow(non_snake_case)]

mod options;

use std::{
Expand Down
2 changes: 0 additions & 2 deletions wasm/parser/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]`
#![allow(non_snake_case)]
#![allow(clippy::needless_pass_by_value)]

use oxc::{allocator::Allocator, parser::Parser, span::SourceType};
Expand Down

0 comments on commit 4f9625c

Please sign in to comment.