Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkovsky committed Dec 28, 2024
1 parent f01777c commit dec46e0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ fn json_to_schema(json: &str) -> PyResult<PyArrowType<ArrowSchema>> {
#[pyfunction]
pub fn language_model_home() -> PyResult<String> {
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))
}
Expand Down

0 comments on commit dec46e0

Please sign in to comment.