Skip to content

Commit 1fc4e7e

Browse files
committed
(c2rust-analyze/tests) Make test functions pub so there aren't a ton of useless warnings.
1 parent a9e9807 commit 1fc4e7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#[cfg(any())]
2-
fn cast_only(s: *const u8) {
2+
pub fn cast_only(s: *const u8) {
33
s as *const core::ffi::c_char;
44
}
55

66
#[cfg(any())]
7-
fn cast_from_literal() {
7+
pub fn cast_from_literal() {
88
b"" as *const u8 as *const core::ffi::c_char;
99
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#[cfg(any())]
2-
fn str() {
2+
pub fn str() {
33
"";
44
}
55

66
#[cfg(any())]
7-
fn bstr() {
7+
pub fn bstr() {
88
b"";
99
}

0 commit comments

Comments
 (0)