Skip to content

Commit c17be95

Browse files
committed
Add doc comment
1 parent 497cde5 commit c17be95

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

database/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,9 +1039,13 @@ impl BenchmarkRequest {
10391039
}
10401040
}
10411041

1042+
/// Result of inserting into the database
10421043
#[derive(Debug, Clone, PartialEq)]
10431044
pub enum BenchmarkRequestInsertResult {
1045+
/// The request was inserted into the database and is a unique instance
10441046
Inserted,
1047+
/// The request was not inserted into the database as something else already
1048+
/// existed that clashed with the unique clause
10451049
NothingInserted,
10461050
}
10471051

site/src/request_handlers/github.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ async fn record_try_benchmark_request_without_artifacts(
102102
log::info!(
103103
"Failed to insert try benchmark request, a request for PR`#{pr}` already exists"
104104
);
105-
format!("This pull request was already queued before and is awaiting a try build to finish.")
105+
"This pull request was already queued before and is awaiting a try build to finish."
106+
.to_string()
106107
}
107108
Ok(BenchmarkRequestInsertResult::Inserted) => get_awaiting_on_bors_message(),
108109
Err(e) => {

0 commit comments

Comments
 (0)