mirror of
https://github.com/rust-lang/cargo
synced 2024-09-17 23:01:51 +00:00
Silence warnings running embedded unittests.
This commit is contained in:
parent
0de7f2ec6c
commit
369f5dea13
|
@ -265,12 +265,12 @@ mod test_expand {
|
||||||
|
|
||||||
macro_rules! si {
|
macro_rules! si {
|
||||||
($i:expr) => {{
|
($i:expr) => {{
|
||||||
expand_manifest(
|
let shell = crate::Shell::from_write(Box::new(Vec::new()));
|
||||||
$i,
|
let cwd = std::env::current_dir().unwrap();
|
||||||
std::path::Path::new("/home/me/test.rs"),
|
let home = home::cargo_home_with_cwd(&cwd).unwrap();
|
||||||
&GlobalContext::default().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))
|
.unwrap_or_else(|err| panic!("{}", err))
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue