mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
Fix project root assert
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
This commit is contained in:
parent
2926ca0452
commit
0d9737ac1c
1 changed files with 1 additions and 1 deletions
|
@ -196,6 +196,6 @@ 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");
|
||||||
let res = 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());
|
assert!(res.join("triagebot.toml").exists());
|
||||||
res
|
res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue