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 a68d731 commit 62a446dCopy full SHA for 62a446d
src/sink.rs
@@ -32,6 +32,8 @@ const SINK_PATTERNS: &[&str] = &[
32
"winapi",
33
];
34
35
+const EXCLUDE_SINK_PATTERNS: &[&str] = &["std::io::error"];
36
+
37
// Removed sink patterns on 2023-11-16
38
// "mio::net",
39
// "mio::unix",
@@ -58,6 +60,13 @@ impl Sink {
58
60
/// Get the sink pattern matching a callee.
59
61
pub fn new_match(callee: &CanonicalPath, sinks: &HashSet<IdentPath>) -> Option<Self> {
62
let mut result = None;
63
+ for excluded in EXCLUDE_SINK_PATTERNS {
64
+ let pat = Pattern::new(excluded);
65
+ if callee.matches(&pat) {
66
+ return None;
67
+ }
68
69
70
for pat_raw in sinks {
71
let pat = Pattern::new(pat_raw.as_str());
72
if callee.matches(&pat) {
0 commit comments