Skip to content

Commit

Permalink
Try fix tb_client.h assertion on Windows, vol.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Nov 19, 2024
1 parent 86faaf6 commit 64b56bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ fn main() {
wrapper = c_dir.join("wrapper.h");
let generated_header = c_dir.join("tb_client.h");
assert_eq!(
fs::read_to_string(&generated_header)
.expect("reading generated `tb_client.h`")
fs::read_to_string(&generated_header).expect("reading generated `tb_client.h`"),
fs::read_to_string("src/tb_client.h")
.expect("reading pre-generated `tb_client.h`")
.replace("\r\n", "\n"),
fs::read_to_string("src/tb_client.h").expect("reading pre-generated `tb_client.h`"),
"generated and pre-generated `tb_client.h` headers must be equal, \
generated at: {generated_header:?}",
);
Expand Down

0 comments on commit 64b56bc

Please sign in to comment.