diff --git a/database/src/lib.rs b/database/src/lib.rs index 7ff641aa1..7797edc0d 100644 --- a/database/src/lib.rs +++ b/database/src/lib.rs @@ -452,7 +452,7 @@ struct ArtifactInfo<'a> { } impl ArtifactId { - fn info(&self) -> ArtifactInfo { + fn info(&self) -> ArtifactInfo<'_> { let (name, date, ty) = match self { Self::Commit(commit) => ( commit.sha.as_str(), diff --git a/database/src/pool/sqlite.rs b/database/src/pool/sqlite.rs index 27d6b46de..39925072b 100644 --- a/database/src/pool/sqlite.rs +++ b/database/src/pool/sqlite.rs @@ -453,7 +453,7 @@ impl SqliteConnection { pub fn raw(&mut self) -> &mut rusqlite::Connection { self.conn.get_mut().unwrap_or_else(|e| e.into_inner()) } - pub fn raw_ref(&self) -> std::sync::MutexGuard { + pub fn raw_ref(&self) -> std::sync::MutexGuard<'_, rusqlite::Connection> { self.conn.lock().unwrap_or_else(|e| e.into_inner()) } } diff --git a/site/src/request_handlers/github.rs b/site/src/request_handlers/github.rs index 948c1f67c..227971fc2 100644 --- a/site/src/request_handlers/github.rs +++ b/site/src/request_handlers/github.rs @@ -161,7 +161,7 @@ async fn handle_rust_timer( /// Parses the first occurrence of a `@rust-timer queue ` command /// in the input string. -fn parse_queue_command(body: &str) -> Option> { +fn parse_queue_command(body: &str) -> Option, String>> { let args = get_command_lines(body, "queue").next()?; let args = match parse_command_arguments(args) { Ok(args) => args, @@ -176,7 +176,7 @@ fn parse_queue_command(body: &str) -> Option> { } /// Parses all occurrences of a `@rust-timer build ` command in the input string. -fn parse_build_commands(body: &str) -> impl Iterator> { +fn parse_build_commands(body: &str) -> impl Iterator, String>> { get_command_lines(body, "build").map(|line| { let mut iter = line.splitn(2, ' '); let Some(sha) = iter.next().filter(|s| !s.is_empty() && !s.contains('=')) else {