Skip to content

Commit bed8106

Browse files
committed
Rust: Rename the test case now that I've figured out exactly what the problem was.
1 parent 3792adf commit bed8106

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rust/ql/test/query-tests/security/CWE-825/lifetime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ pub fn test_generic() {
858858
println!(" result = {result}");
859859
}
860860

861-
// --- struct methods ---
861+
// --- self ---
862862

863863
struct MyObjectWithGetters {
864864
value: i64
@@ -882,7 +882,7 @@ impl MyObjectWithGetters {
882882
}
883883
}
884884

885-
pub fn test_struct_methods() {
885+
pub fn test_get_self() {
886886
let ptr1: *const i64;
887887
let ptr2: *const i64;
888888

rust/ql/test/query-tests/security/CWE-825/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,6 @@ fn main() {
216216
println!("test_generic:");
217217
test_generic();
218218

219-
println!("test_struct_methods:");
220-
test_struct_methods();
219+
println!("test_get_self:");
220+
test_get_self();
221221
}

0 commit comments

Comments
 (0)