Skip to content

Commit

Permalink
Improve comment in testsuite/jobserver.rs
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu committed Sep 12, 2022
1 parent 5fad503 commit a1ae33d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testsuite/jobserver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ const EXE_CONTENT: &str = r#"
use std::env;
fn main() {
// Copied from jobslot::Client::from_env
let var = env::var("CARGO_MAKEFLAGS").unwrap();
// Copied from jobslot::Client::from_env
// It uses MIT + Apache, so it is OK to reuse their code here.
let val = var
.split_ascii_whitespace()
.filter_map(|arg| {
Expand All @@ -22,6 +23,7 @@ fn main() {
})
.find(|s| !s.is_empty())
.unwrap();
// end here
validate(val);
}
Expand Down

0 comments on commit a1ae33d

Please sign in to comment.