diff --git a/.buildkite/docker.sh b/.buildkite/docker.sh
index 7088d3f58..0f1e66379 100755
--- a/.buildkite/docker.sh
+++ b/.buildkite/docker.sh
@@ -24,6 +24,7 @@ docker run -w /build --network test-net -v $BUILDKITE_BUILD_CHECKOUT_PATH:/build
-e TEST_MYSQL=mysql://prisma:prisma@test-mysql:3306/prisma \
-e TEST_PSQL=postgres://prisma:prisma@test-postgres:5432/prisma \
-e TEST_MSSQL="sqlserver://test-mssql:1433;user=SA;password=$MSSQL_SA_PASSWORD;trustServerCertificate=true" \
+ -e RUSTFLAGS="-Dwarnings" \
prismagraphql/build:test cargo test --features full,json-1,uuid-0_8,chrono-0_4,tracing-log,serde-support
exit_code=$?
diff --git a/src/ast/column.rs b/src/ast/column.rs
index 972918c47..00e85828d 100644
--- a/src/ast/column.rs
+++ b/src/ast/column.rs
@@ -39,7 +39,7 @@ where
}
impl<'a> PartialEq for Column<'a> {
- fn eq(&self, other: &Column) -> bool {
+ fn eq(&self, other: &Column<'_>) -> bool {
self.name == other.name && self.table == other.table
}
}
diff --git a/src/ast/grouping.rs b/src/ast/grouping.rs
index 530cd3a97..8852161a9 100644
--- a/src/ast/grouping.rs
+++ b/src/ast/grouping.rs
@@ -38,14 +38,14 @@ pub trait IntoGroupByDefinition<'a> {
impl<'a> IntoGroupByDefinition<'a> for &'a str {
fn into_group_by_definition(self) -> GroupByDefinition<'a> {
- let column: Column = self.into();
+ let column: Column<'_> = self.into();
column.into()
}
}
impl<'a> IntoGroupByDefinition<'a> for (&'a str, &'a str) {
fn into_group_by_definition(self) -> GroupByDefinition<'a> {
- let column: Column = self.into();
+ let column: Column<'_> = self.into();
column.into()
}
}
diff --git a/src/ast/index.rs b/src/ast/index.rs
index a8168e021..f4d8bd544 100644
--- a/src/ast/index.rs
+++ b/src/ast/index.rs
@@ -33,7 +33,7 @@ impl<'a> IndexDefinition<'a> {
}
/// True if the index definition contains the given column.
- pub fn contains(&self, column: &Column) -> bool {
+ pub fn contains(&self, column: &Column<'_>) -> bool {
match self {
Self::Single(ref c) if c == column => true,
Self::Compound(ref cols) if cols.iter().any(|c| c == column) => true,
diff --git a/src/ast/table.rs b/src/ast/table.rs
index d2f52f957..e8f978967 100644
--- a/src/ast/table.rs
+++ b/src/ast/table.rs
@@ -33,7 +33,7 @@ pub struct Table<'a> {
}
impl<'a> PartialEq for Table<'a> {
- fn eq(&self, other: &Table) -> bool {
+ fn eq(&self, other: &Table<'_>) -> bool {
self.typ == other.typ && self.database == other.database
}
}
@@ -91,7 +91,7 @@ impl<'a> Table<'a> {
Some(dual_col.equals(column.clone()).into())
};
- Ok::