pub fn make_absolute(p: &Path) -> Path {
    if p.is_absolute() {
        p.clone()
    } else {
        let mut ret = getcwd();
        ret.push(p);
        ret
    }
}
// NB: this is here rather than in path because it is a form of environment
// querying; what it does depends on the process working directory, not just
// the input paths.
this is here rather than in path because it is a form of environment
querying; what it does depends on the process working directory, not just
the input paths.
this is here rather than in path because it is a form of environment querying ; what it does depends on the process working directory not just the input paths .
pub fn make_absolute(p: &Path) -> Path {
    if p.is_absolute() {
        p.clone()
    } else {
        let mut ret = getcwd();
        ret.push(p);
        ret
    }
}
pub fn make_absolute ( p : & Path ) -> Path { if p . is_absolute ( ) { p . clone ( ) } else { let mut ret = getcwd ( ) ; ret . push ( p ) ; ret } }
NB: this is here rather than in path because it is a form of environment
querying; what it does depends on the process working directory, not just
the input paths.
NB : this is here rather than in path because it is a form of environment querying ; what it does depends on the process working directory not just the input paths .
p
&Path
p
&Path