summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 7b46df5e..71fc54be 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -678,11 +678,11 @@ fn allowlist_warnings() {
"/tests/headers/allowlist_warnings.h"
);
- let mut bindings = builder()
+ let bindings = builder()
.header(header)
.allowlist_function("doesnt_match_anything")
.generate()
.expect("unable to generate bindings");
- assert_eq!(1, bindings.take_warnings().count());
+ assert_eq!(1, bindings.warnings().len());
}