minor: make sure that project_root works correctly
This commit is contained in:
parent
f6896f8356
commit
cd6df6935f
|
@ -191,5 +191,7 @@ fn normalize_newlines(s: &str) -> String {
|
||||||
|
|
||||||
pub fn project_root() -> PathBuf {
|
pub fn project_root() -> PathBuf {
|
||||||
let dir = env!("CARGO_MANIFEST_DIR");
|
let dir = env!("CARGO_MANIFEST_DIR");
|
||||||
PathBuf::from(dir).parent().unwrap().parent().unwrap().to_owned()
|
let res = PathBuf::from(dir).parent().unwrap().parent().unwrap().to_owned();
|
||||||
|
assert!(res.join("bors.toml").exists());
|
||||||
|
res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue