Skip to content

Commit

Permalink
fix: Remove unused trait bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
heyrict committed Apr 30, 2022
1 parent 42a0a26 commit 9ea4e2c
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/models/puzzle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,7 @@ pub enum Yami {
Longterm = 2,
}

impl ToSql<Integer, DB> for Yami
where
i32: ToSql<Integer, DB>,
{
impl ToSql<Integer, DB> for Yami {
fn to_sql<'a>(&'a self, out: &mut Output<'a, '_, DB>) -> serialize::Result {
out.write_i32::<NetworkEndian>(*self as i32)
.map(|_| IsNull::No)
Expand Down Expand Up @@ -219,10 +216,7 @@ impl RawFilter<Genre> for GenreFiltering {
}
}

impl ToSql<Integer, DB> for Genre
where
i32: ToSql<Integer, DB>,
{
impl ToSql<Integer, DB> for Genre {
fn to_sql(&self, out: &mut Output<DB>) -> serialize::Result {
out.write_i32::<NetworkEndian>(*self as i32)
.map(|_| IsNull::No)
Expand Down Expand Up @@ -281,10 +275,7 @@ impl RawFilter<Status> for StatusFiltering {
}
}

impl ToSql<Integer, DB> for Status
where
i32: ToSql<Integer, DB>,
{
impl ToSql<Integer, DB> for Status {
fn to_sql(&self, out: &mut Output<DB>) -> serialize::Result {
out.write_i32::<NetworkEndian>(*self as i32)
.map(|_| IsNull::No)
Expand Down

0 comments on commit 9ea4e2c

Please sign in to comment.