Skip to content

Commit

Permalink
fix node
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Aug 6, 2024
1 parent 458368c commit 34b8f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/node/src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl Tokenizer {
.tokenizer
.write()
.unwrap()
.with_pre_tokenizer((*pre_tokenizer).clone());
.with_pre_tokenizer(Some(*pre_tokenizer).clone());
}

#[napi]
Expand Down Expand Up @@ -240,7 +240,7 @@ impl Tokenizer {
.tokenizer
.write()
.unwrap()
.with_normalizer((*normalizer).clone());
.with_normalizer(Some(*normalizer).clone());
}

#[napi]
Expand Down

0 comments on commit 34b8f89

Please sign in to comment.