Commit 0f56dfea authored by Vladimir Kazakov's avatar Vladimir Kazakov Committed by Thomas Daede

Enable Clippy lints from complexity, correctness, and perf categories

Only those that don't cause warnings and errors.
parent 1cefe25b
......@@ -44,4 +44,4 @@ jobs:
- cargo doc --verbose
- rustup component add clippy
- cargo clippy --version
- cargo clippy -- -D warnings -A clippy::complexity -A clippy::correctness -A clippy::perf -A clippy::get_unwrap -A clippy::len_zero -A clippy::needless_range_loop -A clippy::neg_multiply -A clippy::new_without_default -A clippy::new_without_default_derive -A clippy::ptr_arg -A clippy::single_match -A clippy::unreadable_literal -A clippy::useless_let_if_seq -A clippy::verbose_bit_mask --verbose
- cargo clippy -- -D warnings -A clippy::absurd_extreme_comparisons -A clippy::bool_comparison -A clippy::cast_lossless -A clippy::cast_ptr_alignment -A clippy::collapsible_if -A clippy::cyclomatic_complexity -A clippy::deprecated_cfg_attr -A clippy::erasing_op -A clippy::extra_unused_lifetimes -A clippy::get_unwrap -A clippy::identity_op -A clippy::if_same_then_else -A clippy::len_zero -A clippy::manual_memcpy -A clippy::needless_bool -A clippy::needless_range_loop -A clippy::neg_multiply -A clippy::new_without_default -A clippy::new_without_default_derive -A clippy::nonminimal_bool -A clippy::precedence -A clippy::ptr_arg -A clippy::range_plus_one -A clippy::single_match -A clippy::too_many_arguments -A clippy::trivially_copy_pass_by_ref -A clippy::type_complexity -A clippy::unreadable_literal -A clippy::unused_io_amount -A clippy::useless_let_if_seq -A clippy::verbose_bit_mask -A clippy::while_let_loop --verbose
......@@ -11,10 +11,6 @@
#![allow(non_upper_case_globals)]
#![allow(dead_code)]
#![allow(non_camel_case_types)]
#![allow(clippy::cast_lossless)]
#![allow(clippy::unnecessary_mut_passed)]
#![allow(clippy::needless_range_loop)]
#![allow(clippy::collapsible_if)]
use crate::ec::Writer;
use crate::encoder::{FrameInvariants, ReferenceMode};
......
......@@ -9,9 +9,6 @@
// PATENTS file, you can obtain it at www.aomedia.org/license/patent.
#![allow(non_camel_case_types)]
#![allow(clippy::cast_lossless)]
#![allow(clippy::identity_op)]
#![allow(clippy::needless_range_loop)]
use bitstream_io::{BitWriter, BigEndian};
use std;
......
......@@ -8,7 +8,6 @@
// PATENTS file, you can obtain it at www.aomedia.org/license/patent.
#![allow(safe_extern_statics)]
#![allow(clippy::collapsible_if)]
#[cfg(all(test, feature="decode_test_dav1d"))]
extern crate dav1d_sys;
......
......@@ -7,8 +7,6 @@
// Media Patent License 1.0 was not distributed with this source code in the
// PATENTS file, you can obtain it at www.aomedia.org/license/patent.
#![allow(clippy::cast_lossless)]
use std::iter::FusedIterator;
use std::fmt::{Debug, Formatter};
......
......@@ -8,8 +8,6 @@
// PATENTS file, you can obtain it at www.aomedia.org/license/patent.
#![allow(non_upper_case_globals)]
#![allow(clippy::cast_lossless)]
#![allow(clippy::needless_range_loop)]
use crate::context::{INTRA_MODES, MAX_TX_SIZE};
use crate::partition::*;
......
......@@ -7,7 +7,6 @@
// Media Patent License 1.0 was not distributed with this source code in the
// PATENTS file, you can obtain it at www.aomedia.org/license/patent.
#![allow(clippy::cast_lossless)]
#![allow(non_upper_case_globals)]
use crate::partition::TxSize;
......
......@@ -9,7 +9,6 @@
// PATENTS file, you can obtain it at www.aomedia.org/license/patent.
#![allow(non_camel_case_types)]
#![allow(clippy::cast_lossless)]
use crate::api::PredictionModesSetting;
use crate::cdef::*;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment