mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
CD backports (#1318)
* CD backports follow huggingface/safetensors#317 * fix node bindings? `cargo check` doesnt work on my local configuration from `tokenizers/bindings/node/native` i don't think it will be a problem but i have difficulty telling * backport #315 * safetensors#317 back ports
This commit is contained in:
@ -701,7 +701,7 @@ declare_types! {
|
||||
let params_obj = neon_serde::to_value(&mut cx, &TruncationParams(options.clone()))?;
|
||||
let mut this = cx.this();
|
||||
let guard = cx.lock();
|
||||
this.borrow_mut(&guard)
|
||||
let _ = this.borrow_mut(&guard)
|
||||
.tokenizer.write().unwrap()
|
||||
.with_truncation(Some(options));
|
||||
|
||||
|
Reference in New Issue
Block a user