Skip to content

Commit 5ec4326

Browse files
sypharGuillaumeGomez
authored andcommitted
fix new clippy errors
1 parent 3767aed commit 5ec4326

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/db/pool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl Pool {
117117
}
118118

119119
/// This impl allows us to use our own pool as an executor for SQLx queries.
120-
impl<'p> sqlx::Executor<'p> for &'_ Pool
120+
impl sqlx::Executor<'_> for &'_ Pool
121121
where
122122
for<'c> &'c mut <sqlx::Postgres as sqlx::Database>::Connection:
123123
sqlx::Executor<'c, Database = sqlx::Postgres>,

src/db/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl BuildStatus {
3232
}
3333
}
3434

35-
impl<'a> PartialEq<&'a str> for BuildStatus {
35+
impl PartialEq<&str> for BuildStatus {
3636
fn eq(&self, other: &&str) -> bool {
3737
match self {
3838
Self::Success => *other == "success",

src/web/releases.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ pub(crate) enum ReleaseType {
290290
Search,
291291
}
292292

293-
impl<'a> PartialEq<&'a str> for ReleaseType {
293+
impl PartialEq<&str> for ReleaseType {
294294
fn eq(&self, other: &&str) -> bool {
295295
self.as_str() == *other
296296
}

0 commit comments

Comments
 (0)