Skip to content

Commit

Permalink
Remove unused lint exceptions. (#1385)
Browse files Browse the repository at this point in the history
* Remove unused lint exceptions.

* please trigger cla bot
  • Loading branch information
lemmih authored Jan 20, 2022
1 parent 6a8b2de commit 13095e2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion vm/actor/src/builtin/miner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2516,7 +2516,6 @@ impl Actor {
)
})?;

#[allow(clippy::absurd_extreme_comparisons)]
if (last_sector_number as u64) > MAX_SECTOR_NUMBER {
return Err(actor_error!(
ErrIllegalArgument,
Expand Down
1 change: 0 additions & 1 deletion vm/actor/src/builtin/miner/termination.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pub struct TerminationResult {
}

impl AddAssign for TerminationResult {
#[allow(clippy::suspicious_op_assign_impl)]
fn add_assign(&mut self, rhs: Self) {
self.partitions_processed += rhs.partitions_processed;
self.sectors_processed += rhs.sectors_processed;
Expand Down
1 change: 0 additions & 1 deletion vm/interpreter/src/gas_tracker/price_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ impl StepCost {

/// Provides prices for operations in the VM
#[derive(Clone, Debug)]
#[allow(clippy::all)]
pub struct PriceList {
/// Compute gas charge multiplier
// * This multiplier is not currently applied to anything, but is matching lotus.
Expand Down
1 change: 0 additions & 1 deletion vm/interpreter/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ where

/// Flushes the StateTree and perform a state migration if there is a migration at this epoch.
/// If there is no migration this function will return Ok(None).
#[allow(unreachable_code, unused_variables)]
pub fn migrate_state(
&mut self,
epoch: ChainEpoch,
Expand Down

0 comments on commit 13095e2

Please sign in to comment.