mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-21 22:27:08 +00:00
Silence warnings from ts-rs (#4415)
* Silence warnings from ts-rs https://github.com/Aleph-Alpha/ts-rs/issues/108 * fmt
This commit is contained in:
parent
0e9924a2b3
commit
a09027c4c0
|
@ -149,7 +149,11 @@ http = "0.2.11"
|
||||||
rosetta-i18n = "0.1.3"
|
rosetta-i18n = "0.1.3"
|
||||||
opentelemetry = { version = "0.19.0", features = ["rt-tokio"] }
|
opentelemetry = { version = "0.19.0", features = ["rt-tokio"] }
|
||||||
tracing-opentelemetry = { version = "0.19.0" }
|
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"] }
|
rustls = { version = "0.21.10", features = ["dangerous_configuration"] }
|
||||||
futures-util = "0.3.30"
|
futures-util = "0.3.30"
|
||||||
tokio-postgres = "0.7.10"
|
tokio-postgres = "0.7.10"
|
||||||
|
|
|
@ -5,8 +5,6 @@ CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
||||||
|
|
||||||
cd $CWD/../
|
cd $CWD/../
|
||||||
|
|
||||||
cargo clippy --workspace --fix --allow-staged --allow-dirty --tests --all-targets --all-features -- -D warnings
|
|
||||||
|
|
||||||
# Format rust files
|
# Format rust files
|
||||||
cargo +nightly fmt
|
cargo +nightly fmt
|
||||||
|
|
||||||
|
@ -15,3 +13,5 @@ taplo format
|
||||||
|
|
||||||
# Format sql files
|
# Format sql files
|
||||||
find migrations -type f -name '*.sql' -exec pg_format -i {} +
|
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
|
||||||
|
|
Loading…
Reference in a new issue