Skip to content

Commit cd6df69

Browse files
committed
minor: make sure that project_root works correctly
1 parent f6896f8 commit cd6df69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/sourcegen/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,5 +191,7 @@ fn normalize_newlines(s: &str) -> String {
191191

192192
pub fn project_root() -> PathBuf {
193193
let dir = env!("CARGO_MANIFEST_DIR");
194-
PathBuf::from(dir).parent().unwrap().parent().unwrap().to_owned()
194+
let res = PathBuf::from(dir).parent().unwrap().parent().unwrap().to_owned();
195+
assert!(res.join("bors.toml").exists());
196+
res
195197
}

0 commit comments

Comments
 (0)