refactor(semantic, syntax, wasm): remove #![allow(non_snake_case)] (#7863)

`#![allow(non_snake_case)]` was required in files using `#[derive(Tsify)]`, as a bug in Rust Analyser caused erroneous warnings. This appears to be fixed now, so we can remove these `#![allow]` attributes.
This commit is contained in:
overlookmotel 2024-12-14 01:52:32 +00:00
parent 0f5e0787b8
commit 8cf9766be3
5 changed files with 0 additions and 12 deletions

View file

@ -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")]

View file

@ -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")]

View file

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

View file

@ -1,6 +1,3 @@
// Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]`
#![allow(non_snake_case)]
mod options;
use std::{

View file

@ -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};