Skip to content

Commit

Permalink
fix new clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Nov 30, 2024
1 parent 3767aed commit 605417b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/db/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl Pool {
}

/// This impl allows us to use our own pool as an executor for SQLx queries.
impl<'p> sqlx::Executor<'p> for &'_ Pool
impl sqlx::Executor<'_> for &'_ Pool
where
for<'c> &'c mut <sqlx::Postgres as sqlx::Database>::Connection:
sqlx::Executor<'c, Database = sqlx::Postgres>,
Expand Down
2 changes: 1 addition & 1 deletion src/db/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl BuildStatus {
}
}

impl<'a> PartialEq<&'a str> for BuildStatus {
impl PartialEq<&str> for BuildStatus {
fn eq(&self, other: &&str) -> bool {
match self {
Self::Success => *other == "success",
Expand Down
2 changes: 1 addition & 1 deletion src/web/releases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ pub(crate) enum ReleaseType {
Search,
}

impl<'a> PartialEq<&'a str> for ReleaseType {
impl PartialEq<&str> for ReleaseType {
fn eq(&self, other: &&str) -> bool {
self.as_str() == *other
}
Expand Down

0 comments on commit 605417b

Please sign in to comment.