mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Auto merge of #18971 - mbrubeck:var, r=emilio
Use env::var_os to read paths from the environment This avoids unnecessary UTF-8 validation on OsStrings that we just pass back to the OS. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they are code cleanup only <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18971) <!-- Reviewable:end -->
This commit is contained in:
commit
5ab0ac1620
7 changed files with 19 additions and 18 deletions
|
@ -10,7 +10,7 @@ use std::io::{BufWriter, Write};
|
|||
use std::path::Path;
|
||||
|
||||
fn main() {
|
||||
let path = Path::new(&env::var("OUT_DIR").unwrap())
|
||||
let path = Path::new(&env::var_os("OUT_DIR").unwrap())
|
||||
.join("ascii_case_insensitive_html_attributes.rs");
|
||||
let mut file = BufWriter::new(File::create(&path).unwrap());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue