Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed the op_ref clippy warnings
  • Loading branch information
ZapAnton committed Feb 12, 2019
commit 45b9ef9719e9cb638ab7abe51b4971d6878b6d02
4 changes: 2 additions & 2 deletions vm/src/obj/objrange.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ impl RangeType {
#[inline]
fn offset(&self, value: &BigInt) -> Option<BigInt> {
match self.step.sign() {
Sign::Plus if value >= &self.start && value < &self.end => Some(value - &self.start),
Sign::Minus if value <= &self.start && value > &self.end => Some(&self.start - value),
Sign::Plus if *value >= self.start && *value < self.end => Some(value - &self.start),
Sign::Minus if *value <= self.start && *value > self.end => Some(&self.start - value),
_ => None,
}
}
Expand Down