chore: fix clippy (#1162)

This commit is contained in:
Weston Pace
2024-03-28 10:54:17 -05:00
parent bb179981dd
commit 6060c0cd36
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ impl Table {
})
}
pub fn delete<'a>(self_: PyRef<'a, Self>, condition: String) -> PyResult<&'a PyAny> {
pub fn delete(self_: PyRef<'_, Self>, condition: String) -> PyResult<&PyAny> {
let inner = self_.inner_ref()?.clone();
future_into_py(self_.py(), async move {
inner.delete(&condition).await.infer_error()

View File

@@ -51,7 +51,7 @@ pub fn parse_distance_type(distance_type: impl AsRef<str>) -> PyResult<DistanceT
}
#[pyfunction]
pub(crate) fn validate_table_name(table_name: &str) -> PyResult<()> {
pub fn validate_table_name(table_name: &str) -> PyResult<()> {
lancedb::utils::validate_table_name(table_name)
.map_err(|e| PyValueError::new_err(e.to_string()))
}