Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading