Skip to content

Commit 781be82

Browse files
committed
chore: update Rust to 1.90.0
Update Rust and fix clippy warnings.
1 parent 7094b62 commit 781be82

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

psl/parser-database/src/coerce_expression.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub mod coerce_opt {
8888
const fn coerce<'a, T>(
8989
coercion: impl Fn(&'a ast::Expression) -> Option<T>,
9090
expected_type: &'static str,
91-
) -> impl (Fn(&'a ast::Expression, &mut Diagnostics) -> Option<T>) {
91+
) -> impl Fn(&'a ast::Expression, &mut Diagnostics) -> Option<T> {
9292
move |expr, diagnostics| match coercion(expr) {
9393
Some(t) => Some(t),
9494
None => {
@@ -106,7 +106,7 @@ const fn coerce<'a, T>(
106106
/// Coerce an expression to an array. The coercion function is used to coerce the array elements.
107107
pub fn coerce_array<'a, T>(
108108
expr: &'a ast::Expression,
109-
coercion: &dyn (Fn(&'a ast::Expression, &mut Diagnostics) -> Option<T>),
109+
coercion: &dyn Fn(&'a ast::Expression, &mut Diagnostics) -> Option<T>,
110110
diagnostics: &mut Diagnostics,
111111
) -> Option<Vec<T>> {
112112
let mut out = Vec::new();

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
2-
channel = "1.89.0"
2+
channel = "1.90.0"
33
components = ["clippy", "rustfmt", "rust-src"]
44
targets = [
55
# WASM target for serverless and edge environments.

schema-engine/connectors/schema-connector/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct ConnectorErrorImpl {
2828
/// Additional context.
2929
message: Option<Box<str>>,
3030
/// The source of the error.
31-
source: Option<Arc<(dyn StdError + Send + Sync + 'static)>>,
31+
source: Option<Arc<dyn StdError + Send + Sync + 'static>>,
3232
/// See the tracing-error docs.
3333
context: SpanTrace,
3434
}

schema-engine/sql-schema-describer/src/postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ impl<'a> SqlSchemaDescriber<'a> {
653653

654654
let rows = self.conn.query_raw(sql, &[Value::array(namespaces)]).await?;
655655

656-
let names = rows.into_iter().map(|row| (row.get_expect_string("namespace_name")));
656+
let names = rows.into_iter().map(|row| row.get_expect_string("namespace_name"));
657657

658658
for namespace in names {
659659
sql_schema.push_namespace(namespace);

0 commit comments

Comments
 (0)