move comment right onto the line in question

This commit is contained in:
Niko Matsakis 2018-01-29 13:28:23 -05:00 committed by GitHub
parent 898fdcc3ed
commit adeb0aeb4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,9 +16,6 @@
use std::env::*;
use std::path::PathBuf;
/// When HOME is not set, some platforms return `None`, but others return `Some` with a default.
/// Just check that it is not "/home/MountainView".
#[cfg(unix)]
fn main() {
let oldhome = var("HOME");
@ -30,6 +27,9 @@ fn main() {
if cfg!(target_os = "android") {
assert!(home_dir().is_none());
} else {
// When HOME is not set, some platforms return `None`,
// but others return `Some` with a default.
// Just check that it is not "/home/MountainView".
assert_ne!(home_dir(), Some(PathBuf::from("/home/MountainView")));
}
}