-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Using nlprule and nlprule-build version 0.6.4 and the build.rs script from the current README.md, I get a compile error while building:
error[E0599]: no method named `validate` found for enum `Result<BinaryBuilder, nlprule_build::Error>` in the current scope
--> build.rs:9:6
|
9 | .validate();
| ^^^^^^^^ method not found in `Result<BinaryBuilder, nlprule_build::Error>`
I have solved it by adding error propagation to builds.rs:
fn main() -> Result<(), nlprule_build::Error> {
println!("cargo:rerun-if-changed=build.rs");
nlprule_build::BinaryBuilder::new(
&["en"],
std::env::var("OUT_DIR").expect("OUT_DIR is set when build.rs is running"),
)
.build()?
.validate()
}
If you want, I can make a PR.
Metadata
Metadata
Assignees
Labels
No labels