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 3792adf commit bed8106Copy full SHA for bed8106
rust/ql/test/query-tests/security/CWE-825/lifetime.rs
@@ -858,7 +858,7 @@ pub fn test_generic() {
858
println!(" result = {result}");
859
}
860
861
-// --- struct methods ---
+// --- self ---
862
863
struct MyObjectWithGetters {
864
value: i64
@@ -882,7 +882,7 @@ impl MyObjectWithGetters {
882
883
884
885
-pub fn test_struct_methods() {
+pub fn test_get_self() {
886
let ptr1: *const i64;
887
let ptr2: *const i64;
888
rust/ql/test/query-tests/security/CWE-825/main.rs
@@ -216,6 +216,6 @@ fn main() {
216
println!("test_generic:");
217
test_generic();
218
219
- println!("test_struct_methods:");
220
- test_struct_methods();
+ println!("test_get_self:");
+ test_get_self();
221
0 commit comments