Allow deliberate instances of the clippy::derivable_impls lint (#2788)

* Allow deliberate instances of the new nightly clippy::derivable_impls lint

We want our config defaults to be explicit.

Not so sure about the application defaults, but they also contain a config.

* Also allow unknown lint names

Stable doesn't know about this lint, but nightly does.
This commit is contained in:
teor 2021-09-22 23:43:27 +10:00 committed by GitHub
parent 825da448c0
commit 776432978c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,9 @@ pub struct Config {
pub checkpoint_sync: bool,
}
// we like our default configs to be explicit
#[allow(unknown_lints)]
#[allow(clippy::derivable_impls)]
impl Default for Config {
fn default() -> Self {
Self {

View File

@ -125,6 +125,8 @@ impl ZebradApp {
///
/// By default no configuration is loaded, and the framework state is
/// initialized to a default, empty state (no components, threads, etc).
#[allow(unknown_lints)]
#[allow(clippy::derivable_impls)]
impl Default for ZebradApp {
fn default() -> Self {
Self {

View File

@ -133,6 +133,9 @@ pub struct MetricsSection {
pub endpoint_addr: Option<SocketAddr>,
}
// we like our default configs to be explicit
#[allow(unknown_lints)]
#[allow(clippy::derivable_impls)]
impl Default for MetricsSection {
fn default() -> Self {
Self {