microsoft / windows-drivers-rs

Platform that enables Windows driver development in Rust. Developed by Surface.
Apache License 2.0
1.49k stars 65 forks source link

Remove ? operator from build.rs step in readme #178

Closed pc386 closed 3 months ago

pc386 commented 3 months ago

Removed the extraneous ? operator from the configure_binary_build() call in build.rs in the README. It does not return a Result therefore ? cannot be used. Compiler error: the ? operator can only be applied to values that implement Try the trait Try is not implemented for ()

wmmc88 commented 3 months ago

The latest code on main has configure_binary_build returning a Result type, so the ? in the README is valid. The latest code on main is not released to crates.io yet.

Please refer the readme in the tag of the release you're using (this is the automatic behavior if you look at the crate in crates.io