Skip to content

Commit

Permalink
Guarantee that the type name will be used
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-shigueo committed Jul 24, 2024
1 parent 25434df commit dedfba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts-rs/src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ fn merge(original_contents: String, new_contents: String) -> String {

let new_decl_name = new_decl
.split(DECLARATION_START)
.nth(1)
.last()
.unwrap()
.split_whitespace()
.next()
Expand All @@ -222,7 +222,7 @@ fn merge(original_contents: String, new_contents: String) -> String {
for decl in original_decls {
let decl_name = decl
.split(DECLARATION_START)
.nth(1)
.last()
.unwrap()
.split_whitespace()
.next()
Expand Down

0 comments on commit dedfba5

Please sign in to comment.