Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Aug 21, 2022
1 parent 0498199 commit 001249c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use rsb_derive::Builder;
use serde::{Deserialize, Serialize};
use tracing::*;

#[derive(Debug, PartialEq, Clone, Builder)]
#[derive(Debug, Eq, PartialEq, Clone, Builder)]
pub struct FirestoreDbOptions {
pub google_project_id: String,

Expand Down
10 changes: 5 additions & 5 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ impl Error for FirestoreError {
}
}

#[derive(Debug, PartialEq, Clone, Builder, Serialize, Deserialize)]
#[derive(Debug, Eq, PartialEq, Clone, Builder, Serialize, Deserialize)]
pub struct FirestoreErrorPublicGenericDetails {
pub code: String,
}

#[derive(Debug, PartialEq, Clone, Builder)]
#[derive(Debug, Eq, PartialEq, Clone, Builder)]
pub struct FirestoreSystemError {
pub public: FirestoreErrorPublicGenericDetails,
pub message: String,
Expand Down Expand Up @@ -105,7 +105,7 @@ impl Display for FirestoreDataNotFoundError {

impl std::error::Error for FirestoreDataNotFoundError {}

#[derive(Debug, PartialEq, Clone, Builder, Serialize, Deserialize)]
#[derive(Debug, Eq, PartialEq, Clone, Builder, Serialize, Deserialize)]
pub struct FirestoreInvalidParametersPublicDetails {
pub field: String,
pub error: String,
Expand All @@ -124,7 +124,7 @@ impl Display for FirestoreInvalidParametersError {

impl std::error::Error for FirestoreInvalidParametersError {}

#[derive(Debug, PartialEq, Clone, Builder, Serialize, Deserialize)]
#[derive(Debug, Eq, PartialEq, Clone, Builder, Serialize, Deserialize)]
pub struct FirestoreInvalidJsonErrorPublicDetails {
pub code: String,
}
Expand All @@ -143,7 +143,7 @@ impl Display for FirestoreInvalidJsonError {

impl std::error::Error for FirestoreInvalidJsonError {}

#[derive(Debug, PartialEq, Clone, Builder)]
#[derive(Debug, Eq, PartialEq, Clone, Builder)]
pub struct FirestoreNetworkError {
pub public: FirestoreErrorPublicGenericDetails,
pub message: String,
Expand Down
8 changes: 4 additions & 4 deletions src/query.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use gcloud_sdk::google::firestore::v1::*;
use rsb_derive::Builder;

#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, Eq, PartialEq, Clone)]
pub enum FirestoreQueryCollection {
Single(String),
Group(Vec<String>),
Expand Down Expand Up @@ -241,7 +241,7 @@ impl FirestoreQueryFilter {
}
}

#[derive(Debug, PartialEq, Clone, Builder)]
#[derive(Debug, Eq, PartialEq, Clone, Builder)]
pub struct FirestoreQueryOrder {
field_name: String,
direction: FirestoreQueryDirection,
Expand All @@ -263,7 +263,7 @@ impl FirestoreQueryOrder {
}
}

#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, Eq, PartialEq, Clone)]
pub enum FirestoreQueryDirection {
Ascending,
Descending,
Expand All @@ -274,7 +274,7 @@ pub struct FirestoreQueryFilterComposite {
pub for_all_filters: Vec<FirestoreQueryFilter>,
}

#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, Eq, PartialEq, Clone)]
pub enum FirestoreQueryFilterUnary {
IsNan(String),
IsNull(String),
Expand Down

0 comments on commit 001249c

Please sign in to comment.