From 33490e1edb99cd867133a2a02381e64afe787710 Mon Sep 17 00:00:00 2001 From: Jason Williams <936006+jasonwilliams@users.noreply.github.com> Date: Sun, 2 Feb 2020 00:31:00 +0000 Subject: [PATCH] updating clippy rules on all files (#238) --- src/bin/bin.rs | 25 +++---------------------- src/bin/shell.rs | 25 +++---------------------- src/lib/lib.rs | 1 - 3 files changed, 6 insertions(+), 45 deletions(-) diff --git a/src/bin/bin.rs b/src/bin/bin.rs index 2f96e1ec86..3dc3337c8f 100644 --- a/src/bin/bin.rs +++ b/src/bin/bin.rs @@ -1,25 +1,6 @@ -#![forbid( - warnings, - anonymous_parameters, - unused_extern_crates, - unused_import_braces, - missing_copy_implementations, - //trivial_casts, - variant_size_differences, - missing_debug_implementations, - trivial_numeric_casts -)] -// Debug trait derivation will show an error if forbidden. -#![deny(unused_qualifications, unsafe_code)] -#![deny(clippy::all)] -#![warn(clippy::pedantic)] -#![allow( - missing_docs, - clippy::many_single_char_names, - clippy::unreadable_literal, - clippy::excessive_precision, - clippy::module_name_repetitions -)] +#![deny(unused_qualifications, clippy::correctness, clippy::style)] +#![warn(clippy::perf)] +#![allow(clippy::cognitive_complexity)] use boa::exec; use std::{env, fs::read_to_string, process::exit}; diff --git a/src/bin/shell.rs b/src/bin/shell.rs index c5610f5df8..4fae186e98 100644 --- a/src/bin/shell.rs +++ b/src/bin/shell.rs @@ -1,25 +1,6 @@ -#![forbid( - warnings, - anonymous_parameters, - unused_extern_crates, - unused_import_braces, - missing_copy_implementations, - //trivial_casts, - variant_size_differences, - missing_debug_implementations, - trivial_numeric_casts -)] -// Debug trait derivation will show an error if forbidden. -#![deny(unused_qualifications, unsafe_code)] -#![deny(clippy::all)] -#![warn(clippy::pedantic)] -#![allow( - missing_docs, - clippy::many_single_char_names, - clippy::unreadable_literal, - clippy::excessive_precision, - clippy::module_name_repetitions -)] +#![deny(unused_qualifications, clippy::correctness, clippy::style)] +#![warn(clippy::perf)] +#![allow(clippy::cognitive_complexity)] use boa::realm::Realm; use boa::{exec::Executor, forward_val}; diff --git a/src/lib/lib.rs b/src/lib/lib.rs index 2085261bdb..b1575d828b 100644 --- a/src/lib/lib.rs +++ b/src/lib/lib.rs @@ -1,4 +1,3 @@ -// Debug trait derivation will show an error if forbidden. #![deny(unused_qualifications, clippy::correctness, clippy::style)] #![warn(clippy::perf)] #![allow(clippy::cognitive_complexity)]