Skip to content

Commit ad756ef

Browse files
authored
Merge pull request #2159 from jieyouxu/fix-warnings
Fix warnings due to `mismatched_lifetime_syntaxes`
2 parents 8a9b364 + 12a3e97 commit ad756ef

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

database/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ struct ArtifactInfo<'a> {
452452
}
453453

454454
impl ArtifactId {
455-
fn info(&self) -> ArtifactInfo {
455+
fn info(&self) -> ArtifactInfo<'_> {
456456
let (name, date, ty) = match self {
457457
Self::Commit(commit) => (
458458
commit.sha.as_str(),

database/src/pool/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ impl SqliteConnection {
453453
pub fn raw(&mut self) -> &mut rusqlite::Connection {
454454
self.conn.get_mut().unwrap_or_else(|e| e.into_inner())
455455
}
456-
pub fn raw_ref(&self) -> std::sync::MutexGuard<rusqlite::Connection> {
456+
pub fn raw_ref(&self) -> std::sync::MutexGuard<'_, rusqlite::Connection> {
457457
self.conn.lock().unwrap_or_else(|e| e.into_inner())
458458
}
459459
}

site/src/request_handlers/github.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async fn handle_rust_timer(
161161

162162
/// Parses the first occurrence of a `@rust-timer queue <shared-args>` command
163163
/// in the input string.
164-
fn parse_queue_command(body: &str) -> Option<Result<QueueCommand, String>> {
164+
fn parse_queue_command(body: &str) -> Option<Result<QueueCommand<'_>, String>> {
165165
let args = get_command_lines(body, "queue").next()?;
166166
let args = match parse_command_arguments(args) {
167167
Ok(args) => args,
@@ -176,7 +176,7 @@ fn parse_queue_command(body: &str) -> Option<Result<QueueCommand, String>> {
176176
}
177177

178178
/// Parses all occurrences of a `@rust-timer build <shared-args>` command in the input string.
179-
fn parse_build_commands(body: &str) -> impl Iterator<Item = Result<BuildCommand, String>> {
179+
fn parse_build_commands(body: &str) -> impl Iterator<Item = Result<BuildCommand<'_>, String>> {
180180
get_command_lines(body, "build").map(|line| {
181181
let mut iter = line.splitn(2, ' ');
182182
let Some(sha) = iter.next().filter(|s| !s.is_empty() && !s.contains('=')) else {

0 commit comments

Comments
 (0)