Skip to content

Commit 448bd07

Browse files
Pat Hickeypchickey
authored andcommitted
witx: make some render funcs public, so we can reuse them in witx-test
1 parent 031bbe0 commit 448bd07

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/witx/src/render.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ impl fmt::Display for SExpr {
4747
}
4848

4949
impl SExpr {
50-
fn word(s: &str) -> SExpr {
50+
pub fn word(s: &str) -> SExpr {
5151
SExpr::Word(s.to_string())
5252
}
53-
fn ident(s: &str) -> SExpr {
53+
pub fn ident(s: &str) -> SExpr {
5454
SExpr::Ident(s.to_string())
5555
}
56-
fn quote(s: &str) -> SExpr {
56+
pub fn quote(s: &str) -> SExpr {
5757
SExpr::Quote(s.to_string())
5858
}
59-
fn annot(s: &str) -> SExpr {
59+
pub fn annot(s: &str) -> SExpr {
6060
SExpr::Annot(s.to_string())
6161
}
62-
fn docs(d: &str, s: SExpr) -> SExpr {
62+
pub fn docs(d: &str, s: SExpr) -> SExpr {
6363
if d.is_empty() {
6464
s
6565
} else {

0 commit comments

Comments
 (0)