We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4da1cfe commit b326176Copy full SHA for b326176
src/libstd/run.rs
@@ -1311,11 +1311,11 @@ mod tests {
1311
let output = str::from_bytes(prog.finish_with_output().output);
1312
1313
let r = os::env();
1314
- for &(k, v) in r.iter() {
+ for &(ref k, ref v) in r.iter() {
1315
// don't check android RANDOM variables
1316
- if k != ~"RANDOM" {
1317
- assert!(output.contains(fmt!("%s=%s", k, v)) ||
1318
- output.contains(fmt!("%s=\'%s\'", k, v)));
+ if *k != ~"RANDOM" {
+ assert!(output.contains(fmt!("%s=%s", *k, *v)) ||
+ output.contains(fmt!("%s=\'%s\'", *k, *v)));
1319
}
1320
1321
0 commit comments