Skip to content

Commit 32b22c7

Browse files
pre-commit-ci[bot]nyurik
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 990fd4f commit 32b22c7

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/utils.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ pub fn multiplex_enum_name(msg: &Message, multiplexor: &Signal) -> Result<Ident>
3737
"{}{}Index",
3838
msg.name.to_pascal_case(),
3939
multiplexor.name.to_pascal_case(),
40-
).ident())
40+
)
41+
.ident())
4142
}
4243

4344
pub fn multiplexed_enum_variant_name(
@@ -54,7 +55,8 @@ pub fn multiplexed_enum_variant_name(
5455
"{}{}M{switch_index}",
5556
msg.name.to_pascal_case(),
5657
multiplexor.name.to_pascal_case(),
57-
).ident())
58+
)
59+
.ident())
5860
}
5961

6062
pub trait SignalExt {
@@ -66,7 +68,8 @@ pub trait SignalExt {
6668
format!(
6769
"{prefix}{}{suffix}",
6870
sanitize_name(self.get_name(), ToSnakeCase::to_snake_case)
69-
).ident()
71+
)
72+
.ident()
7073
}
7174
fn const_name(&self, suffix: &str) -> Ident {
7275
let tmp: String;
@@ -78,7 +81,8 @@ pub trait SignalExt {
7881
&tmp
7982
},
8083
ToShoutySnakeCase::to_shouty_snake_case,
81-
).ident()
84+
)
85+
.ident()
8286
}
8387
}
8488

0 commit comments

Comments
 (0)