mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
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:
parent
0f5e0787b8
commit
8cf9766be3
5 changed files with 0 additions and 12 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
// Silence erroneous warnings from Rust Analyser for `#[derive(Tsify)]`
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
mod options;
|
||||
|
||||
use std::{
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Reference in a new issue