fix pad calls

This commit is contained in:
Pierric Cistac
2020-02-05 14:49:47 -05:00
parent 41fee6de3d
commit 3adf199a0c
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ declare_types! {
let mut this = cx.this();
let guard = cx.lock();
this.borrow_mut(&guard).encoding.execute_mut(|encoding| {
encoding.unwrap().pad(length, pad_id, pad_type_id, &pad_token, &direction);
encoding.unwrap().pad(length, pad_id, pad_type_id, &pad_token, direction);
});
Ok(cx.undefined().upcast())

View File

@ -253,7 +253,7 @@ impl Encoding {
Ok(self
.encoding
.pad(length, pad_id, pad_type_id, pad_token, &direction))
.pad(length, pad_id, pad_type_id, pad_token, direction))
}
#[args(kwargs = "**")]