From da2abccc0d6e8dfa5369ce4e3329f88947c96a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Tue, 2 Apr 2024 14:18:20 +0200 Subject: [PATCH] chore: Disable clippy::assigning_clones lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- Cargo.toml | 3 +++ bindings/matrix-sdk-crypto-ffi/Cargo.toml | 3 +++ bindings/matrix-sdk-ffi/Cargo.toml | 3 +++ crates/matrix-sdk-base/Cargo.toml | 3 +++ crates/matrix-sdk-common/Cargo.toml | 3 +++ crates/matrix-sdk-crypto/Cargo.toml | 3 +++ crates/matrix-sdk-indexeddb/Cargo.toml | 3 +++ crates/matrix-sdk-qrcode/Cargo.toml | 3 +++ crates/matrix-sdk-sqlite/Cargo.toml | 3 +++ crates/matrix-sdk-store-encryption/Cargo.toml | 3 +++ crates/matrix-sdk-ui/Cargo.toml | 3 +++ crates/matrix-sdk/Cargo.toml | 3 +++ examples/autojoin/Cargo.toml | 3 +++ examples/backups/Cargo.toml | 3 +++ examples/command_bot/Cargo.toml | 3 +++ examples/cross_signing_bootstrap/Cargo.toml | 3 +++ examples/custom_events/Cargo.toml | 3 +++ examples/emoji_verification/Cargo.toml | 3 +++ examples/get_profiles/Cargo.toml | 3 +++ examples/getting_started/Cargo.toml | 3 +++ examples/image_bot/Cargo.toml | 3 +++ examples/login/Cargo.toml | 3 +++ examples/oidc_cli/Cargo.toml | 3 +++ examples/persist_session/Cargo.toml | 3 +++ examples/secret_storage/Cargo.toml | 3 +++ examples/timeline/Cargo.toml | 3 +++ labs/multiverse/Cargo.toml | 3 +++ testing/matrix-sdk-integration-testing/Cargo.toml | 3 +++ testing/matrix-sdk-test-macros/Cargo.toml | 3 +++ testing/matrix-sdk-test/Cargo.toml | 3 +++ 30 files changed, 90 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 632f3a83e..29b2a43a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -107,3 +107,6 @@ opt-level = 3 [patch.crates-io] async-compat = { git = "https://github.com/jplatte/async-compat", rev = "16dc8597ec09a6102d58d4e7b67714a35dd0ecb8" } const_panic = { git = "https://github.com/jplatte/const_panic", rev = "9024a4cb3eac45c1d2d980f17aaee287b17be498" } + +[workspace.lints.clippy] +assigning_clones = "allow" diff --git a/bindings/matrix-sdk-crypto-ffi/Cargo.toml b/bindings/matrix-sdk-crypto-ffi/Cargo.toml index 176d1aee9..5995c94c9 100644 --- a/bindings/matrix-sdk-crypto-ffi/Cargo.toml +++ b/bindings/matrix-sdk-crypto-ffi/Cargo.toml @@ -58,3 +58,6 @@ vergen = { version = "8.2.5", features = ["build", "git", "gitcl"] } [dev-dependencies] tempfile = "3.8.0" assert_matches2 = { workspace = true } + +[lints] +workspace = true diff --git a/bindings/matrix-sdk-ffi/Cargo.toml b/bindings/matrix-sdk-ffi/Cargo.toml index 8a1104421..1765ab9fa 100644 --- a/bindings/matrix-sdk-ffi/Cargo.toml +++ b/bindings/matrix-sdk-ffi/Cargo.toml @@ -86,3 +86,6 @@ features = [ "sqlite", "uniffi", ] + +[lints] +workspace = true diff --git a/crates/matrix-sdk-base/Cargo.toml b/crates/matrix-sdk-base/Cargo.toml index 333fbc142..471d1ceb0 100644 --- a/crates/matrix-sdk-base/Cargo.toml +++ b/crates/matrix-sdk-base/Cargo.toml @@ -72,3 +72,6 @@ tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] wasm-bindgen-test = "0.3.33" + +[lints] +workspace = true diff --git a/crates/matrix-sdk-common/Cargo.toml b/crates/matrix-sdk-common/Cargo.toml index 65ca44ea3..877f6c38e 100644 --- a/crates/matrix-sdk-common/Cargo.toml +++ b/crates/matrix-sdk-common/Cargo.toml @@ -45,3 +45,6 @@ wasm-bindgen-test = "0.3.33" [target.'cfg(target_arch = "wasm32")'.dev-dependencies] js-sys = "0.3.64" + +[lints] +workspace = true diff --git a/crates/matrix-sdk-crypto/Cargo.toml b/crates/matrix-sdk-crypto/Cargo.toml index 0e3f77323..d8ed027e3 100644 --- a/crates/matrix-sdk-crypto/Cargo.toml +++ b/crates/matrix-sdk-crypto/Cargo.toml @@ -83,3 +83,6 @@ proptest = { version = "1.0.0", default-features = false, features = ["std"] } # required for async_test macro stream_assert = { workspace = true } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } + +[lints] +workspace = true diff --git a/crates/matrix-sdk-indexeddb/Cargo.toml b/crates/matrix-sdk-indexeddb/Cargo.toml index fd185233b..3cb85fc15 100644 --- a/crates/matrix-sdk-indexeddb/Cargo.toml +++ b/crates/matrix-sdk-indexeddb/Cargo.toml @@ -53,3 +53,6 @@ matrix-sdk-test = { workspace = true } tracing-subscriber = { version = "0.3.18", default-features = false, features = ["registry", "tracing-log"] } uuid = "1.3.0" wasm-bindgen-test = "0.3.33" + +[lints] +workspace = true diff --git a/crates/matrix-sdk-qrcode/Cargo.toml b/crates/matrix-sdk-qrcode/Cargo.toml index 58cdf6cca..44f6bd6ec 100644 --- a/crates/matrix-sdk-qrcode/Cargo.toml +++ b/crates/matrix-sdk-qrcode/Cargo.toml @@ -28,3 +28,6 @@ vodozemac = { workspace = true } [dev-dependencies] image = "0.24.7" qrcode = { version = "0.13.0", default-features = false, features = ["image"] } + +[lints] +workspace = true diff --git a/crates/matrix-sdk-sqlite/Cargo.toml b/crates/matrix-sdk-sqlite/Cargo.toml index eede3850e..b38e92e6d 100644 --- a/crates/matrix-sdk-sqlite/Cargo.toml +++ b/crates/matrix-sdk-sqlite/Cargo.toml @@ -41,3 +41,6 @@ matrix-sdk-test = { workspace = true } once_cell = { workspace = true } tempfile = "3.3.0" tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } + +[lints] +workspace = true diff --git a/crates/matrix-sdk-store-encryption/Cargo.toml b/crates/matrix-sdk-store-encryption/Cargo.toml index 849250a2e..8b1159a4c 100644 --- a/crates/matrix-sdk-store-encryption/Cargo.toml +++ b/crates/matrix-sdk-store-encryption/Cargo.toml @@ -31,3 +31,6 @@ zeroize = { workspace = true, features = ["zeroize_derive"] } [dev-dependencies] anyhow = { workspace = true } + +[lints] +workspace = true diff --git a/crates/matrix-sdk-ui/Cargo.toml b/crates/matrix-sdk-ui/Cargo.toml index 7066020e1..6cbe12d96 100644 --- a/crates/matrix-sdk-ui/Cargo.toml +++ b/crates/matrix-sdk-ui/Cargo.toml @@ -63,3 +63,6 @@ matrix-sdk-test = { workspace = true } stream_assert = { workspace = true } tempfile = "3.3.0" wiremock = { workspace = true } + +[lints] +workspace = true diff --git a/crates/matrix-sdk/Cargo.toml b/crates/matrix-sdk/Cargo.toml index 27d5af239..e86b1c594 100644 --- a/crates/matrix-sdk/Cargo.toml +++ b/crates/matrix-sdk/Cargo.toml @@ -168,3 +168,6 @@ wiremock = { version = "0.5.13" } [[test]] name = "integration" required-features = ["testing"] + +[lints] +workspace = true diff --git a/examples/autojoin/Cargo.toml b/examples/autojoin/Cargo.toml index e9b600cb1..bc066ca26 100644 --- a/examples/autojoin/Cargo.toml +++ b/examples/autojoin/Cargo.toml @@ -15,3 +15,6 @@ tracing-subscriber = "0.3.15" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/backups/Cargo.toml b/examples/backups/Cargo.toml index ae6670e2d..037f6c7ba 100644 --- a/examples/backups/Cargo.toml +++ b/examples/backups/Cargo.toml @@ -18,3 +18,6 @@ url = "2.3.1" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/command_bot/Cargo.toml b/examples/command_bot/Cargo.toml index 3f22ee32c..61be06f4f 100644 --- a/examples/command_bot/Cargo.toml +++ b/examples/command_bot/Cargo.toml @@ -15,3 +15,6 @@ tracing-subscriber = "0.3.15" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/cross_signing_bootstrap/Cargo.toml b/examples/cross_signing_bootstrap/Cargo.toml index f43ff181b..86a827ab1 100644 --- a/examples/cross_signing_bootstrap/Cargo.toml +++ b/examples/cross_signing_bootstrap/Cargo.toml @@ -16,3 +16,6 @@ url = "2.2.2" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/custom_events/Cargo.toml b/examples/custom_events/Cargo.toml index 3228f62d0..f8dbf84c0 100644 --- a/examples/custom_events/Cargo.toml +++ b/examples/custom_events/Cargo.toml @@ -16,3 +16,6 @@ tracing-subscriber = "0.3.15" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/emoji_verification/Cargo.toml b/examples/emoji_verification/Cargo.toml index aaf838d26..988135373 100644 --- a/examples/emoji_verification/Cargo.toml +++ b/examples/emoji_verification/Cargo.toml @@ -18,3 +18,6 @@ url = "2.3.1" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/get_profiles/Cargo.toml b/examples/get_profiles/Cargo.toml index 30617a3ff..04a92e7e3 100644 --- a/examples/get_profiles/Cargo.toml +++ b/examples/get_profiles/Cargo.toml @@ -16,3 +16,6 @@ url = "2.2.2" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/getting_started/Cargo.toml b/examples/getting_started/Cargo.toml index a0344c437..f847d41c0 100644 --- a/examples/getting_started/Cargo.toml +++ b/examples/getting_started/Cargo.toml @@ -15,3 +15,6 @@ tracing-subscriber = "0.3.15" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/image_bot/Cargo.toml b/examples/image_bot/Cargo.toml index 3e22d22a3..35ef06acf 100644 --- a/examples/image_bot/Cargo.toml +++ b/examples/image_bot/Cargo.toml @@ -17,3 +17,6 @@ url = "2.2.2" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/login/Cargo.toml b/examples/login/Cargo.toml index 8c2c125a6..886740499 100644 --- a/examples/login/Cargo.toml +++ b/examples/login/Cargo.toml @@ -16,3 +16,6 @@ url = "2.2.2" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk", features = ["sso-login"] } + +[lints] +workspace = true diff --git a/examples/oidc_cli/Cargo.toml b/examples/oidc_cli/Cargo.toml index cd835929f..5f91e12fe 100644 --- a/examples/oidc_cli/Cargo.toml +++ b/examples/oidc_cli/Cargo.toml @@ -26,3 +26,6 @@ url = "2.2.2" [dependencies.matrix-sdk] path = "../../crates/matrix-sdk" features = ["experimental-oidc"] + +[lints] +workspace = true diff --git a/examples/persist_session/Cargo.toml b/examples/persist_session/Cargo.toml index 86e073155..eb56b04af 100644 --- a/examples/persist_session/Cargo.toml +++ b/examples/persist_session/Cargo.toml @@ -19,3 +19,6 @@ tracing-subscriber = "0.3.15" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/secret_storage/Cargo.toml b/examples/secret_storage/Cargo.toml index 503b5d485..6f647910f 100644 --- a/examples/secret_storage/Cargo.toml +++ b/examples/secret_storage/Cargo.toml @@ -18,3 +18,6 @@ url = "2.3.1" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } + +[lints] +workspace = true diff --git a/examples/timeline/Cargo.toml b/examples/timeline/Cargo.toml index 4fb7f8a00..1bbc38873 100644 --- a/examples/timeline/Cargo.toml +++ b/examples/timeline/Cargo.toml @@ -19,3 +19,6 @@ url = "2.2.2" # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } matrix-sdk-ui = { path = "../../crates/matrix-sdk-ui" } + +[lints] +workspace = true diff --git a/labs/multiverse/Cargo.toml b/labs/multiverse/Cargo.toml index 308c563d5..5bb6bcf7a 100644 --- a/labs/multiverse/Cargo.toml +++ b/labs/multiverse/Cargo.toml @@ -24,3 +24,6 @@ tracing = { workspace = true } tracing-appender = { version = "0.2.2" } tracing-subscriber = { version = "0.3.17", features = ["env-filter"] } url = "2.2.2" + +[lints] +workspace = true diff --git a/testing/matrix-sdk-integration-testing/Cargo.toml b/testing/matrix-sdk-integration-testing/Cargo.toml index 88b1141fa..9b3976ff0 100644 --- a/testing/matrix-sdk-integration-testing/Cargo.toml +++ b/testing/matrix-sdk-integration-testing/Cargo.toml @@ -29,3 +29,6 @@ tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] } tracing = { workspace = true } wiremock = { workspace = true } json-structural-diff = "0.1.0" + +[lints] +workspace = true diff --git a/testing/matrix-sdk-test-macros/Cargo.toml b/testing/matrix-sdk-test-macros/Cargo.toml index 63dac4193..770ffac4c 100644 --- a/testing/matrix-sdk-test-macros/Cargo.toml +++ b/testing/matrix-sdk-test-macros/Cargo.toml @@ -19,3 +19,6 @@ doctest = false [dependencies] quote = "1.0.18" syn = { version = "2.0.43", features = ["full", "extra-traits"] } + +[lints] +workspace = true diff --git a/testing/matrix-sdk-test/Cargo.toml b/testing/matrix-sdk-test/Cargo.toml index 0af07a948..a853e6f15 100644 --- a/testing/matrix-sdk-test/Cargo.toml +++ b/testing/matrix-sdk-test/Cargo.toml @@ -31,3 +31,6 @@ tracing-subscriber = { version = "0.3.11", features = ["env-filter"] } [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2.6", default-features = false, features = ["js"] } wasm-bindgen-test = "0.3.33" + +[lints] +workspace = true