Minor bug in `build.rs` content provided by README
kedom1337 opened this issue · 1 comments
kedom1337 commented
The section of the README describing how to create a new windows-driver-rs
project has a minor bug in step 6.
It provides the following code for the build.rs
file.
fn main() -> Result<(), wdk_build::ConfigError> {
wdk_build::Config::from_env_auto()?.configure_binary_build()?;
Ok(())
}
The issue here is the last ?
after configure_binary_build
. This function returns ()
and therefore does not implement Try
which results in an error. Simply removing the last ?
resolves the issue.