Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
siefkenj committed Jan 13, 2024
1 parent 8d83bbb commit 0c703ed
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions tests/rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,16 @@ fn test_rename_all() {
#[tsify(namespace)]
enum Enum {
/// Comment for snake_case
SnakeCase {
foo: bool,
foo_bar: bool,
},
SnakeCase { foo: bool, foo_bar: bool },
/// Comment for camel_case
#[serde(rename_all = "camelCase")]
CamelCase {
foo: bool,
foo_bar: bool,
},
CamelCase { foo: bool, foo_bar: bool },
/// Comment for kebab_case
#[serde(rename_all = "kebab-case")]
KebabCase {
foo: bool,
foo_bar: bool,
},
KebabCase { foo: bool, foo_bar: bool },
/// Comment for screaming_snake_case
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
ScreamingSnakeCase {
foo: bool,
foo_bar: bool,
},
ScreamingSnakeCase { foo: bool, foo_bar: bool },
}

/// Comment for PascalCase
Expand Down

0 comments on commit 0c703ed

Please sign in to comment.