We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
needless_lifetimes
1 parent f686c64 commit fb60a17Copy full SHA for fb60a17
src/models/krate.rs
@@ -106,7 +106,7 @@ pub struct NewCrate<'a> {
106
pub max_features: Option<i16>,
107
}
108
109
-impl<'a> NewCrate<'a> {
+impl NewCrate<'_> {
110
pub async fn update(&self, conn: &mut AsyncPgConnection) -> QueryResult<Crate> {
111
use diesel::update;
112
src/models/team.rs
@@ -43,7 +43,7 @@ pub struct NewTeam<'a> {
43
pub org_id: i32,
44
45
46
-impl<'a> NewTeam<'a> {
+impl NewTeam<'_> {
47
pub async fn create_or_update(&self, conn: &mut AsyncPgConnection) -> QueryResult<Team> {
48
use diesel::insert_into;
49
0 commit comments