Skip to content

Commit

Permalink
fix: lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Oct 4, 2024
1 parent 6244149 commit 368e49e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub struct LoginInfo<'a> {
host: String,
}

impl<'a> LoginInfo<'a> {
impl LoginInfo<'_> {
pub fn user(&self) -> Option<&str> {
self.user
}
Expand Down
4 changes: 2 additions & 2 deletions src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub trait ToSqlText: fmt::Debug {
Self: Sized;
}

impl<'a, T> ToSqlText for &'a T
impl<T> ToSqlText for &T
where
T: ToSqlText,
{
Expand Down Expand Up @@ -76,7 +76,7 @@ impl ToSqlText for String {
}
}

impl<'a> ToSqlText for &'a str {
impl ToSqlText for &str {
fn to_sql_text(
&self,
ty: &Type,
Expand Down

0 comments on commit 368e49e

Please sign in to comment.