Skip to content

Commit

Permalink
chore: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
hlhr202 committed May 19, 2023
1 parent e0102cb commit 19bae9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hf-tokenizer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ pub struct Encoding {

#[wasm_bindgen]
impl Encoding {
#[wasm_bindgen(method, getter = ids)]
#[wasm_bindgen(getter = ids)]
pub fn get_ids(&self) -> js_sys::Uint32Array {
self.encoding.get_ids().into()
}

#[wasm_bindgen(method, getter = tokens)]
#[wasm_bindgen(getter = tokens)]
pub fn get_tokens(&self) -> js_sys::Array {
self.encoding
.get_tokens()
Expand Down

0 comments on commit 19bae9a

Please sign in to comment.