From a09027c4c000063a96330d5fb37b4da737af6b44 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Mon, 29 Jan 2024 15:22:53 +0100 Subject: [PATCH] Silence warnings from ts-rs (#4415) * Silence warnings from ts-rs https://github.com/Aleph-Alpha/ts-rs/issues/108 * fmt --- Cargo.toml | 6 +++++- scripts/lint.sh | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 60e85a193..76694e607 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -149,7 +149,11 @@ http = "0.2.11" rosetta-i18n = "0.1.3" opentelemetry = { version = "0.19.0", features = ["rt-tokio"] } tracing-opentelemetry = { version = "0.19.0" } -ts-rs = { version = "7.1.1", features = ["serde-compat", "chrono-impl"] } +ts-rs = { version = "7.1.1", features = [ + "serde-compat", + "chrono-impl", + "no-serde-warnings", +] } rustls = { version = "0.21.10", features = ["dangerous_configuration"] } futures-util = "0.3.30" tokio-postgres = "0.7.10" diff --git a/scripts/lint.sh b/scripts/lint.sh index 924fba390..7a93b5f54 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -5,8 +5,6 @@ CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" cd $CWD/../ -cargo clippy --workspace --fix --allow-staged --allow-dirty --tests --all-targets --all-features -- -D warnings - # Format rust files cargo +nightly fmt @@ -15,3 +13,5 @@ taplo format # Format sql files find migrations -type f -name '*.sql' -exec pg_format -i {} + + +cargo clippy --workspace --fix --allow-staged --allow-dirty --tests --all-targets --all-features -- -D warnings