add hints from solution (+ clippy fixes) (#23)
This commit is contained in:
committed by
GitHub
parent
d8db7d7eb3
commit
942034c4bb
@@ -7,10 +7,10 @@ fn main() {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
if !std::env::var("DOCS_RS").is_ok() {
|
||||
if std::env::var("DOCS_RS").is_err() {
|
||||
let ortools_prefix = std::env::var("ORTOOLS_PREFIX")
|
||||
.ok()
|
||||
.unwrap_or("/opt/ortools".into());
|
||||
.unwrap_or_else(|| "/opt/ortools".into());
|
||||
cc::Build::new()
|
||||
.cpp(true)
|
||||
.flag("-std=c++17")
|
||||
|
||||
Reference in New Issue
Block a user