Fix project root assert
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
This commit is contained in:
parent
2926ca0452
commit
0d9737ac1c
@ -196,6 +196,6 @@ fn normalize_newlines(s: &str) -> String {
|
||||
pub fn project_root() -> PathBuf {
|
||||
let dir = env!("CARGO_MANIFEST_DIR");
|
||||
let res = PathBuf::from(dir).parent().unwrap().parent().unwrap().to_owned();
|
||||
assert!(res.join("bors.toml").exists());
|
||||
assert!(res.join("triagebot.toml").exists());
|
||||
res
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user