Skip to content

Commit

Permalink
Fix project root assert
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <[email protected]>
  • Loading branch information
Rustin170506 committed Jul 5, 2022
1 parent 2926ca0 commit 0d9737a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sourcegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 0d9737a

Please sign in to comment.