Skip to content

Commit a6cc946

Browse files
committed
Rust: fix inline flow test
1 parent 97c2dfe commit a6cc946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/ql/test/library-tests/dataflow/sources/test_futures_io.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async fn test_futures_rustls_futures_io() -> io::Result<()> {
6161
let buffer = pinned.poll_fill_buf(&mut cx);
6262
if let Poll::Ready(Ok(buf)) = buffer {
6363
sink(&buffer); // $ hasTaintFlow=url
64-
sink(buf); // $ hasTaintFlow=url
64+
sink(buf); // $ MISSING: hasTaintFlow=url
6565
}
6666

6767
// using the `AsyncBufRead` trait (alternative syntax)
@@ -113,7 +113,7 @@ async fn test_futures_rustls_futures_io() -> io::Result<()> {
113113
sink(&pinned); // $ hasTaintFlow=url
114114
let mut cx = Context::from_waker(futures::task::noop_waker_ref());
115115
let buffer = pinned.poll_fill_buf(&mut cx);
116-
sink(&buffer); // $ MISSING: hasTaintFlow=url
116+
sink(&buffer); // $ hasTaintFlow=url
117117
if let Poll::Ready(Ok(buf)) = buffer {
118118
sink(buf); // $ MISSING: hasTaintFlow=url
119119
}

0 commit comments

Comments
 (0)