We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5787555 commit 8169ccdCopy full SHA for 8169ccd
rust/ql/test/query-tests/unusedentities/main.rs
@@ -356,7 +356,7 @@ fn if_lets_matches() {
356
357
let duration2:Result<std::time::Duration, String> =
358
Ok(std::time::Duration::new(10, 0));
359
- match (duration2) {
+ match duration2 {
360
Ok(n) => { println!("duration was {} seconds", n.as_secs()); }
361
Err(_) => { println!("failed"); }
362
}
@@ -400,7 +400,7 @@ fn increment(x: i32) -> i32 {
400
401
402
fn func_ptrs() {
403
- let MyFunc: FuncPtr = increment;
+ let my_func: FuncPtr = increment;
404
405
for x
406
in 1..10 {
@@ -414,7 +414,7 @@ fn func_ptrs() {
414
415
416
417
- _ = MyFunc(x);
+ _ = my_func(x);
418
419
420
0 commit comments