Skip to content

Commit 8169ccd

Browse files
geoffw0paldepind
andauthored
Apply suggestions from code review
Co-authored-by: Simon Friis Vindum <[email protected]>
1 parent 5787555 commit 8169ccd

File tree

1 file changed

+3
-3
lines changed
  • rust/ql/test/query-tests/unusedentities

1 file changed

+3
-3
lines changed

rust/ql/test/query-tests/unusedentities/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ fn if_lets_matches() {
356356

357357
let duration2:Result<std::time::Duration, String> =
358358
Ok(std::time::Duration::new(10, 0));
359-
match (duration2) {
359+
match duration2 {
360360
Ok(n) => { println!("duration was {} seconds", n.as_secs()); }
361361
Err(_) => { println!("failed"); }
362362
}
@@ -400,7 +400,7 @@ fn increment(x: i32) -> i32 {
400400
}
401401

402402
fn func_ptrs() {
403-
let MyFunc: FuncPtr = increment;
403+
let my_func: FuncPtr = increment;
404404

405405
for x
406406
in 1..10 {
@@ -414,7 +414,7 @@ fn func_ptrs() {
414414

415415
for x
416416
in 1..10 {
417-
_ = MyFunc(x);
417+
_ = my_func(x);
418418
}
419419
}
420420

0 commit comments

Comments
 (0)