mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +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 {
|
||||
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 a new issue