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 committed 2024-12-14 01:52:32 +00:00
1 parent 0f5e0787b8
commit 8cf9766be3
5 files changed
-12

No files matched your search

-3
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")]
-2
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")]
-2
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;
-3
View File
@@ -1,6 +1,3 @@
// Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]`
#![allow(non_snake_case)]
mod options;
use std::{
-2
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};