Skip to content

Commit 73a4081

Browse files
committed
Clippy appeasement.
1 parent 8c51e57 commit 73a4081

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl Action {
164164
) {
165165
match self {
166166
Self::Slice(range) => {
167-
if range.should_panic(&control) {
167+
if range.should_panic(control) {
168168
assert_panic(|| range.assert_range(control, subject))
169169
} else {
170170
range.assert_range(control, subject);
@@ -243,7 +243,7 @@ impl Action {
243243
TestBounds::ToInclusive(end) if end == usize::max_value() => return,
244244
_ => {}
245245
}
246-
if range.should_panic(&control) {
246+
if range.should_panic(control) {
247247
assert_panic(|| match range {
248248
TestBounds::Range(start, end) => {
249249
(control.drain(start..end), subject.drain(start..end))
@@ -285,7 +285,7 @@ impl Action {
285285
TestBounds::ToInclusive(end) if end == usize::max_value() => return,
286286
_ => {}
287287
}
288-
if range.should_panic(&control) {
288+
if range.should_panic(control) {
289289
assert_panic(|| match range {
290290
TestBounds::Range(start, end) => {
291291
control.replace_range(start..end, &string);

0 commit comments

Comments
 (0)