mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 04:41:46 +03:00
Remove Eq trait on config (#459)
this fails when generating coverage reports
This commit is contained in:
parent
7167594afb
commit
e48cd33a1e
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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>,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user