Skip to content

Commit 8750b63

Browse files
authored
book/building: Fix expect_build() call
`expect_build()` does not seem to be a thing (anymore)? The tutorial uses `build()?`, so I've adapted the snippet to use `build().unwrap()` since the snippet is not using `miette` at the moment.
1 parent bea6877 commit 8750b63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book/src/building.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ fn main() {
1111
let path = std::path::PathBuf::from("src"); // include path
1212
let mut b = autocxx_build::Builder::new("src/main.rs", &[&path])
1313
.extra_clang_args(&["-std=c++17"])
14-
.expect_build();
14+
.build()
15+
.unwrap();
1516
b.flag_if_supported("-std=c++17") // use "-std:c++17" here if using msvc on windows
1617
.compile("autocxx-demo"); // arbitrary library name, pick anything
1718
println!("cargo:rerun-if-changed=src/main.rs");

0 commit comments

Comments
 (0)