Browse Source

updating clippy rules on all files (#238)

pull/236/head
Jason Williams 5 years ago committed by GitHub
parent
commit
33490e1edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      src/bin/bin.rs
  2. 25
      src/bin/shell.rs
  3. 1
      src/lib/lib.rs

25
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};

25
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};

1
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)]

Loading…
Cancel
Save