Skip to content

Commit

Permalink
Merge pull request #104 from abrown/remove-deprecation
Browse files Browse the repository at this point in the history
rust: use new `bindgen::Builder::formatter` method
  • Loading branch information
jlb6740 authored Oct 6, 2023
2 parents 3c92ca6 + 9196612 commit 181ee5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/ittapi-sys/tests/bindgen-up-to-date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// have to get `bindgen` working themselves.
//
// If bindgen or ittapi.h or jitprofiling.h change you can run tests with
// `BLESS=1` (inpired by a similiar pach for binaryen) to regenerate the
// `BLESS=1` (inspired by a similar patch for binaryen) to regenerate the
// source files, otherwise this can test on CI that the file doesn't need
// to be regenerated.

Expand All @@ -29,7 +29,7 @@ fn test_ittnotify_bindings_up_to_date() {
// When generating the `ittnotify`, we exclude non-ITT constants (see `allowlist_var`) to avoid
// `libc` differences.
let mut expected = bindgen::Builder::default()
.rustfmt_bindings(true)
.formatter(bindgen::Formatter::Rustfmt)
.allowlist_var("ITT.*")
.allowlist_var("__itt.*")
.header(concat(INCLUDE_PATH, "/ittnotify.h"))
Expand Down Expand Up @@ -62,7 +62,7 @@ fn test_ittnotify_bindings_up_to_date() {
#[test]
fn test_jitprofiling_bindings_up_to_date() {
let mut expected = bindgen::Builder::default()
.rustfmt_bindings(true)
.formatter(bindgen::Formatter::Rustfmt)
.header(concat(INCLUDE_PATH, "/jitprofiling.h"))
.generate()
.expect("Unable to generate jitprofiling bindings")
Expand Down

0 comments on commit 181ee5d

Please sign in to comment.