chore(msrv): bump minimum Rust version to 1.88.0
This commit is contained in:
1 parent
44ffec7446
commit
43b810fb36
9 files changed
+11
-13
No files matched your search
@@ -1631,13 +1631,11 @@ pub async fn list_tables_filtered(
|
||||
Ok(tables)
|
||||
}
|
||||
|
||||
// `Option::is_none_or` requires Rust 1.82, while DBX still supports Rust 1.77.2.
|
||||
#[allow(clippy::unnecessary_map_or)]
|
||||
fn should_fallback_empty_list_tables(filter: Option<&str>) -> bool {
|
||||
// MySQL proxies such as MyCat can return an empty information_schema.TABLES
|
||||
// even when SHOW TABLES exposes objects. Avoid the fallback for active
|
||||
// searches so normal MySQL "no match" queries do not rescan large schemas.
|
||||
filter.map_or(true, |filter| filter.trim().is_empty())
|
||||
filter.is_none_or(|filter| filter.trim().is_empty())
|
||||
}
|
||||
|
||||
fn filter_list_tables_fallback(
|
||||
|
||||
Reference in new issue
Block a user