Skip to content

Commit 2be6b99

Browse files
committed
cargo-rail: updates to test crates
1 parent b4321df commit 2be6b99

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

crates/test-crate-a/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ pub fn new_monorepo_function() {
1616
pub fn from_remote() {
1717
println!("This change came from the split repo");
1818
}
19+
pub fn feature_a1() -> &'static str {
20+
"Feature A1"
21+
}
22+
pub fn fix_a1() -> bool {
23+
false
24+
}
1925
// Update to test-crate-a
2026

2127
#[cfg(test)]
@@ -29,5 +35,3 @@ mod tests {
2935
assert!(msg.contains("Hello from crate B"));
3036
}
3137
}
32-
pub fn feature_a1() -> &'static str { "Feature A1" }
33-
pub fn fix_a1() -> bool { false }

crates/test-crate-b/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@ pub fn another_mono_feature() -> &'static str {
3232
}
3333
// Change B
3434
// Update to test-crate-b
35-
pub fn feature_b1() -> &'static str { "Feature B1" }
36-
pub fn fix_b1() -> bool { true }
35+
pub fn feature_b1() -> &'static str {
36+
"Feature B1"
37+
}
38+
pub fn fix_b1() -> bool {
39+
true
40+
}

0 commit comments

Comments
 (0)