Skip to content

Commit

Permalink
fix: remove unnecessary display impl
Browse files Browse the repository at this point in the history
  • Loading branch information
dracarys18 committed Dec 1, 2023
1 parent 222fb94 commit c8e16d7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions crates/diesel_models/src/kv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ pub enum DBOperation {
Delete,
}

impl std::fmt::Display for DBOperation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
DBOperation::Insert { .. } => f.write_str("Insert"),
DBOperation::Update { .. } => f.write_str("Update"),
DBOperation::Delete => f.write_str("Delete"),
}
}
}

#[derive(Debug, Serialize, Deserialize)]
pub struct TypedSql {
#[serde(flatten)]
Expand Down

0 comments on commit c8e16d7

Please sign in to comment.