Skip to content

Commit

Permalink
sanitize base_syn_path
Browse files Browse the repository at this point in the history
  • Loading branch information
burrbull committed Feb 14, 2024
1 parent 6c7f925 commit d28b700
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/generate/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ fn base_syn_path(
let mut segments = Punctuated::new();
segments.push(path_segment(Ident::new("super", span)));
segments.push(path_segment(ident(
&base.register().name,
&replace_suffix(&base.register().name, ""),
config,
"register_mod",
span,
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,4 +495,4 @@ fn pascalcase() {
assert_eq!(to_pascal_case("FOO_BAR_1"), "FooBar1");
assert_eq!(to_pascal_case("FOO_BAR_1_2"), "FooBar1_2");
assert_eq!(to_pascal_case("FOO_BAR_1_2_"), "FooBar1_2_");
}
}

0 comments on commit d28b700

Please sign in to comment.