mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 18:43:44 +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:
1 parent
0f5e0787b8
commit
8cf9766be3
5 files changed
-12
No files matched your search
@@ -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};
|
||||
|
||||
Reference in new issue
Block a user