Skip to content

Commit

Permalink
fix(rust): Re-exports to_rust_ident (#685)
Browse files Browse the repository at this point in the history
This function was public before the crates were merged and
`cargo component` depends on this function. This re-marks the function
as public

Signed-off-by: Taylor Thomas <[email protected]>
  • Loading branch information
thomastaylor312 authored Sep 29, 2023
1 parent 6a8f849 commit 9c834db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ struct FnSig {
self_is_first_param: bool,
}

fn to_rust_ident(name: &str) -> String {
pub fn to_rust_ident(name: &str) -> String {
match name {
// Escape Rust keywords.
// Source: https://doc.rust-lang.org/reference/keywords.html
Expand Down

0 comments on commit 9c834db

Please sign in to comment.