From 4e714dbb186ca6a53d507b356ee54aea7c158702 Mon Sep 17 00:00:00 2001 From: Arthur Date: Tue, 14 Nov 2023 08:24:10 +0100 Subject: [PATCH] syling --- bindings/python/src/pre_tokenizers.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bindings/python/src/pre_tokenizers.rs b/bindings/python/src/pre_tokenizers.rs index 458496882..6484d1cbb 100644 --- a/bindings/python/src/pre_tokenizers.rs +++ b/bindings/python/src/pre_tokenizers.rs @@ -11,7 +11,7 @@ use tk::pre_tokenizers::bert::BertPreTokenizer; use tk::pre_tokenizers::byte_level::ByteLevel; use tk::pre_tokenizers::delimiter::CharDelimiterSplit; use tk::pre_tokenizers::digits::Digits; -use tk::pre_tokenizers::metaspace::{Metaspace}; +use tk::pre_tokenizers::metaspace::Metaspace; use tk::pre_tokenizers::punctuation::Punctuation; use tk::pre_tokenizers::split::Split; use tk::pre_tokenizers::unicode_scripts::UnicodeScripts; @@ -511,7 +511,9 @@ impl PyMetaspace { // Extract values from _kwargs if present let prepend_scheme: Option = _kwargs.and_then(|kwargs| { - kwargs.get_item("prepend_scheme").and_then(|prepend_scheme| prepend_scheme.extract().ok()) + kwargs + .get_item("prepend_scheme") + .and_then(|prepend_scheme| prepend_scheme.extract().ok()) }); // Perform an action if prepend_scheme is present if let Some(prepend_scheme_value) = prepend_scheme {