add hints from solution (+ clippy fixes) (#23)

This commit is contained in:
Frédérick Sauvage
2021-09-14 10:28:56 +02:00
committed by GitHub
parent d8db7d7eb3
commit 942034c4bb
3 changed files with 26 additions and 4 deletions
+2 -2
View File
@@ -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")