Skip to content

Commit 682f59f

Browse files
committed
Rust: Make helper predicate private + autoformat.
1 parent ac5ec06 commit 682f59f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rust/ql/lib/codeql/rust/security/SensitiveData.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ private class SensitiveVariableAccess extends SensitiveData {
112112
override SensitiveDataClassification getClassification() { result = classification }
113113
}
114114

115-
Expr fieldExprParentField(FieldExpr fe) {
116-
result = fe.getParentNode()
117-
}
115+
private Expr fieldExprParentField(FieldExpr fe) { result = fe.getParentNode() }
118116

119117
/**
120118
* A field access data flow node that might be sensitive data.

0 commit comments

Comments
 (0)