Skip to content

Commit

Permalink
Add dummy variable assignment for no_truncation() case
Browse files Browse the repository at this point in the history
  • Loading branch information
boyleconnor committed Jul 27, 2023
1 parent 613dbf0 commit 99a9897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ impl PyTokenizer {
/// Disable truncation
#[pyo3(text_signature = "(self)")]
fn no_truncation(&mut self) {
self.tokenizer.with_truncation(None);
let _ = self.tokenizer.with_truncation(None);
}

/// Get the currently set truncation parameters
Expand Down

0 comments on commit 99a9897

Please sign in to comment.