Remove Eq trait on config (#459)

this fails when generating coverage reports
This commit is contained in:
Yuri Astrakhan 2022-10-22 13:33:50 -04:00 committed by GitHub
parent 7167594afb
commit e48cd33a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 5 deletions

View File

@ -6,7 +6,7 @@ use std::fs::File;
use std::io;
use std::io::prelude::*;
#[derive(Clone, Debug, Serialize, PartialEq, Eq)]
#[derive(Clone, Debug, Serialize, PartialEq)]
pub struct Config {
#[serde(flatten)]
pub srv: SrvConfig,

View File

@ -1,3 +1,7 @@
// Bounds struct derives PartialEq, but not Eq,
// so all containing types must also derive PartialEq without Eq
#![allow(clippy::derive_partial_eq_without_eq)]
pub mod config;
pub mod pg;
pub mod source;

View File

@ -22,7 +22,7 @@ pub struct PgArgs {
pub pool_size: Option<u32>,
}
#[derive(Clone, Debug, Serialize, PartialEq, Eq)]
#[derive(Clone, Debug, Serialize, PartialEq)]
pub struct PgConfig {
pub connection_string: String,
pub ca_root_file: Option<String>,

View File

@ -9,7 +9,7 @@ use std::collections::HashMap;
use std::io;
use tilejson::{tilejson, Bounds, TileJSON};
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
pub struct FunctionSource {
/// Function source id
pub id: String,

View File

@ -11,7 +11,7 @@ use std::collections::{HashMap, HashSet};
use std::io;
use tilejson::{tilejson, Bounds, TileJSON};
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
pub struct TableSource {
/// Table source id
pub id: String,

View File

@ -17,7 +17,7 @@ pub struct SrvArgs {
pub workers: Option<usize>,
}
#[derive(Clone, Debug, Serialize, PartialEq, Eq)]
#[derive(Clone, Debug, Serialize, PartialEq)]
pub struct SrvConfig {
pub keep_alive: usize,
pub listen_addresses: String,