Silence warnings running embedded unittests.

This commit is contained in:
Eric Huss 2024-05-18 12:59:43 -07:00
parent 0de7f2ec6c
commit 369f5dea13

View file

@ -265,12 +265,12 @@ mod test_expand {
macro_rules! si {
($i:expr) => {{
expand_manifest(
$i,
std::path::Path::new("/home/me/test.rs"),
&GlobalContext::default().unwrap(),
)
.unwrap_or_else(|err| panic!("{}", err))
let shell = crate::Shell::from_write(Box::new(Vec::new()));
let cwd = std::env::current_dir().unwrap();
let home = home::cargo_home_with_cwd(&cwd).unwrap();
let gctx = GlobalContext::new(shell, cwd, home);
expand_manifest($i, std::path::Path::new("/home/me/test.rs"), &gctx)
.unwrap_or_else(|err| panic!("{}", err))
}};
}