summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Poveda <christian.poveda@ferrous-systems.com>2022-08-16 11:24:06 -0500
committerEmilio Cobos Álvarez <emilio@crisal.io>2022-08-18 18:08:37 +0200
commitbc19e553da2e5c89470f413b1e07e4c9a5647b58 (patch)
tree9740c6b3cfe104615ac6cd1981067611b7869054 /tests
parentc5995bda24d628ddecda8bbe10db9b4415cc973a (diff)
remove macro in favor of a method
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());
}