From 9dfd4cd936b2d7c82e1d5582b8950b660bd4dd27 Mon Sep 17 00:00:00 2001 From: Boshen Date: Wed, 22 Mar 2023 12:35:52 +0800 Subject: [PATCH] chore(rust): remove unnecessary missing_const_for_fn --- crates/oxc_allocator/src/arena.rs | 1 - crates/oxc_ast/src/ast_builder.rs | 2 +- tasks/coverage/typescript | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/oxc_allocator/src/arena.rs b/crates/oxc_allocator/src/arena.rs index a54901687..e093e92f6 100644 --- a/crates/oxc_allocator/src/arena.rs +++ b/crates/oxc_allocator/src/arena.rs @@ -99,7 +99,6 @@ impl<'alloc, T> Vec<'alloc, T> { } #[must_use] - #[allow(clippy::missing_const_for_fn)] // the destructor for this type cannot be evaluated in constant functions pub fn into_inner(self) -> collections::Vec<'alloc, T> { self.0 } diff --git a/crates/oxc_ast/src/ast_builder.rs b/crates/oxc_ast/src/ast_builder.rs index 74373a73d..aaea066aa 100644 --- a/crates/oxc_ast/src/ast_builder.rs +++ b/crates/oxc_ast/src/ast_builder.rs @@ -1,6 +1,6 @@ //! AST builder for creating AST spans -#![allow(clippy::unused_self, clippy::missing_const_for_fn, clippy::too_many_arguments)] +#![allow(clippy::unused_self, clippy::too_many_arguments)] use oxc_allocator::{Allocator, Box, String, Vec}; diff --git a/tasks/coverage/typescript b/tasks/coverage/typescript index b168b246b..2c952fe85 160000 --- a/tasks/coverage/typescript +++ b/tasks/coverage/typescript @@ -1 +1 @@ -Subproject commit b168b246b79dc7891bd35d973454a8c862fd3c82 +Subproject commit 2c952fe8505fc427cdfe30ed4b40343f0f5f39bc