From 650d960b85af115614b1a211b8edcaa0178c57c1 Mon Sep 17 00:00:00 2001 From: Devin Ragotzy Date: Thu, 17 Jun 2021 17:29:20 -0400 Subject: [PATCH] Enable linting for non-exhaustive structs --- .cargo/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.cargo/config b/.cargo/config index 75e2c8f9..c4af6538 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,7 +1,7 @@ [alias] xtask = "run --package xtask --" ruma-clippy = """\ - clippy --workspace --all-targets --all-features -- \ + clippy --workspace --all-targets --features=full,compat,unstable-pre-spec -- \ -W rust_2018_idioms \ -W semicolon_in_expressions_from_macros \ -W unused_import_braces \ @@ -21,6 +21,7 @@ ruma-clippy = """\ -W clippy::unseparated_literal_suffix \ -W clippy::useless_let_if_seq \ -W clippy::wildcard_imports \ + -W clippy::exhaustive_structs \ """ [doc.extern-map.registries]