From dec46e038b1ed2fd7d11793d2a60070da22e51d8 Mon Sep 17 00:00:00 2001 From: Chongchen Chen Date: Sat, 28 Dec 2024 16:53:24 +0800 Subject: [PATCH] format --- python/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/src/lib.rs b/python/src/lib.rs index f534d0c3df..9e46ce8883 100644 --- a/python/src/lib.rs +++ b/python/src/lib.rs @@ -177,14 +177,14 @@ fn json_to_schema(json: &str) -> PyResult> { #[pyfunction] pub fn language_model_home() -> PyResult { let Some(p) = lance_index::scalar::inverted::language_model_home() else { - return Err(pyo3::exceptions::PyValueError::new_err(format!( - "Failed to get language model home" - ))); + return Err(pyo3::exceptions::PyValueError::new_err( + "Failed to get language model home", + )); }; let Some(pstr) = p.to_str() else { - return Err(pyo3::exceptions::PyValueError::new_err(format!( - "Failed to convert language model home to str" - ))); + return Err(pyo3::exceptions::PyValueError::new_err( + "Failed to convert language model home to str", + )); }; Ok(String::from(pstr)) }