move comment right onto the line in question
This commit is contained in:
parent
898fdcc3ed
commit
adeb0aeb4a
@ -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")));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user