Skip to content

Commit

Permalink
Write enums as screaming snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
tinrab committed Aug 23, 2024
1 parent ba12c0a commit 6a4e71c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion bomboni_wasm_core/src/ts_decl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl Display for EnumTsDecl {
write!(
f,
"\n {} = {},",
str_to_case(&member.name, Case::Pascal),
str_to_case(&member.name, Case::ScreamingSnake),
&member.alias_type
)?;
}
Expand Down
1 change: 0 additions & 1 deletion develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ function test() {

function publish() {
if [[ "$2" =~ ^(--actually-do-it)$ ]]; then
echo "Publishing..."
cargo publish -p bomboni_core --allow-dirty
cargo publish -p bomboni_wasm_core --allow-dirty
cargo publish -p bomboni_wasm_derive --allow-dirty
Expand Down

0 comments on commit 6a4e71c

Please sign in to comment.