Skip to content

Commit f2eb995

Browse files
committed
fix cargo_compile_path_deps
1 parent 1c991f8 commit f2eb995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cargo_compile_path_deps.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ test!(nested_deps_recompile {
468468
469469
name = "bar"
470470
"#)
471-
.file("src/bar/src/bar.rs", "pub fn gimme() {}");
471+
.file("src/bar/src/bar.rs", "pub fn gimme() -> i32 { 92 }");
472472
let bar = p.url();
473473

474474
assert_that(p.cargo_process("build"),
@@ -722,7 +722,7 @@ test!(dev_deps_no_rebuild_lib {
722722
"#)
723723
.file("src/lib.rs", r#"
724724
#[cfg(test)] extern crate bar;
725-
#[cfg(not(test))] fn foo() { env!("FOO"); }
725+
#[cfg(not(test))] pub fn foo() { env!("FOO"); }
726726
"#)
727727
.file("bar/Cargo.toml", r#"
728728
[package]

0 commit comments

Comments
 (0)