We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de7f2e commit 369f5deCopy full SHA for 369f5de
src/cargo/util/toml/embedded.rs
@@ -265,12 +265,12 @@ mod test_expand {
265
266
macro_rules! si {
267
($i:expr) => {{
268
- expand_manifest(
269
- $i,
270
- std::path::Path::new("/home/me/test.rs"),
271
- &GlobalContext::default().unwrap(),
272
- )
273
- .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))
274
}};
275
}
276
0 commit comments