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
@@ -78,7 +78,7 @@ impl NodeRuntime {
|
||||
let package_is_compatible = package
|
||||
.as_ref()
|
||||
.and_then(|package| package.minimum_node_version)
|
||||
.map_or(true, |minimum| parse_node_version(&node_version).is_some_and(|version| version >= minimum));
|
||||
.is_none_or(|minimum| parse_node_version(&node_version).is_some_and(|version| version >= minimum));
|
||||
let mcp_version = package.as_ref().and_then(|package| package.version.clone());
|
||||
// Resolve the package-declared launcher so npm layout changes do not break the built-in AI assistant.
|
||||
let mcp_script_path = package.filter(|_| package_is_compatible).map(|package| package.script_path);
|
||||
|
||||
@@ -703,7 +703,7 @@ fn mongo_filter_is_effectively_unbounded(filter_json: &str) -> bool {
|
||||
serde_json::from_str::<serde_json::Value>(filter_json)
|
||||
.ok()
|
||||
.as_ref()
|
||||
.map_or(true, |value| mongo_filter_contains_opaque_logic(value) || mongo_filter_value_is_unbounded(value))
|
||||
.is_none_or(|value| mongo_filter_contains_opaque_logic(value) || mongo_filter_value_is_unbounded(value))
|
||||
}
|
||||
|
||||
fn mongo_filter_contains_opaque_logic(value: &serde_json::Value) -> bool {
|
||||
@@ -877,10 +877,10 @@ fn mongo_filter_value_is_unbounded(value: &serde_json::Value) -> bool {
|
||||
"$comment" => true,
|
||||
"$and" => value
|
||||
.as_array()
|
||||
.map_or(true, |clauses| clauses.is_empty() || clauses.iter().all(mongo_filter_value_is_unbounded)),
|
||||
.is_none_or(|clauses| clauses.is_empty() || clauses.iter().all(mongo_filter_value_is_unbounded)),
|
||||
"$or" => value
|
||||
.as_array()
|
||||
.map_or(true, |clauses| clauses.is_empty() || clauses.iter().any(mongo_filter_value_is_unbounded)),
|
||||
.is_none_or(|clauses| clauses.is_empty() || clauses.iter().any(mongo_filter_value_is_unbounded)),
|
||||
"$nor" => true,
|
||||
_ if mongo_field_predicate_is_empty_nin(value) => true,
|
||||
"_id" if mongo_field_predicate_is_exists_true(value) => true,
|
||||
|
||||
Reference in new issue
Block a user