Skip to content

Commit d5db0ab

Browse files
committed
Auto merge of #4030 - Turbo87:fix-ci, r=Turbo87
admin::on_call: Work around potential Rust v1.57.0-beta.1 bug The fields in the `InvalidEvent` struct are used by the `Debug` implementation, which is used by the `anyhow!()` macro call in the `Event::send()` implementation. The Rust v1.57.0-beta.1 compiler does not appear to agree on that though and marks these fields as unused. This PR adds `#[allow(dead_code)]` to work around the issue for now and fix our CI builds to unblock other updates.
2 parents 61c1a7a + 2f3988e commit d5db0ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/admin/on_call.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ struct FullEvent {
6262
}
6363

6464
#[derive(serde::Deserialize, Debug)]
65+
#[allow(dead_code)] // workaround for a potential bug in Rust v1.57.0-beta.1
6566
struct InvalidEvent {
6667
message: String,
6768
errors: Vec<String>,

0 commit comments

Comments
 (0)