Skip to content

Commit

Permalink
suggestion changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Nov 14, 2023
1 parent ac646fa commit e41955b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/src/pre_tokenizers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ impl PyMetaspace {

#[setter]
fn set_prepend_scheme(self_: PyRef<Self>, prepend_scheme: String) -> PyResult<()> {
let scheme = _from_string(prepend_scheme)?;
let scheme = from_string(prepend_scheme)?;
setter!(self_, Metaspace, @set_prepend_scheme, scheme);
Ok(())
}
Expand All @@ -536,7 +536,7 @@ impl PyMetaspace {

// If a prepend scheme is provided, set it
if let Some(prepend_scheme) = prepend_scheme {
match _from_string(prepend_scheme) {
match from_string(prepend_scheme) {
Ok(prepend_scheme_enum) => new_instance.set_prepend_scheme(prepend_scheme_enum),
Err(err) => return Err(err),
}
Expand Down

0 comments on commit e41955b

Please sign in to comment.