Remove clone

This commit is contained in:
Andreas Liljeqvist 2021-09-05 10:59:14 +02:00
parent 5b2f757dae
commit 459c9108e4

View File

@ -625,7 +625,7 @@ fn visit_scalar(
return Ok(());
}
// At least one value is excluded.
let valid_range = scalar_layout.valid_range.clone();
let valid_range = scalar_layout.valid_range;
let WrappingRange { start, end } = valid_range;
let max_value = u128::MAX >> (128 - op.layout.size.bits());
assert!(end <= max_value);