Skip to content

Commit

Permalink
ci: Silence clippy::extra_unused_type_parameters in affected crates
Browse files Browse the repository at this point in the history
Triggers false positives.
See discussion in rust-lang/rust-clippy#10319.
Possibly fixed in rust-lang/rust-clippy#10321.

Signed-off-by: Kévin Commaille <[email protected]>
  • Loading branch information
zecakeh committed Feb 13, 2023
1 parent 6f4bfde commit 304b17a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bindings/matrix-sdk-crypto-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
#![warn(missing_docs)]
#![allow(unused_qualifications)]
// Triggers false positives.
// See <https://github.com/rust-lang/rust-clippy/issues/10319>.
#![allow(clippy::extra_unused_type_parameters)]

mod backup_recovery_key;
mod device;
Expand Down
6 changes: 5 additions & 1 deletion bindings/matrix-sdk-crypto-js/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs, missing_debug_implementations)]
#![allow(clippy::drop_non_drop)] // triggered by wasm_bindgen code
// triggered by wasm_bindgen code
#![allow(clippy::drop_non_drop)]
// Triggers false positives.
// See <https://github.com/rust-lang/rust-clippy/issues/10319>.
#![allow(clippy::extra_unused_type_parameters)]

pub mod attachment;
pub mod device;
Expand Down
3 changes: 3 additions & 0 deletions bindings/matrix-sdk-ffi/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// TODO: target-os conditional would be good.

#![allow(unused_qualifications)]
// Triggers false positives.
// See <https://github.com/rust-lang/rust-clippy/issues/10319>.
#![allow(clippy::extra_unused_type_parameters)]

macro_rules! unwrap_or_clone_arc_into_variant {
(
Expand Down

0 comments on commit 304b17a

Please sign in to comment.