Skip to content

Commit

Permalink
Use or_default() (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbkaisetsu authored Oct 12, 2023
1 parent 14dcd57 commit b689381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vaporetto/src/tag_trainer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl<'a> TagTrainer<'a> {
}
self.examples
.entry(token.surface())
.or_insert_with(Vec::new)
.or_default()
.push(TagExample {
tags: token.tags(),
features,
Expand Down

0 comments on commit b689381

Please sign in to comment.