Skip to content

Commit 41a793d

Browse files
Allow unused on never-read fields
1 parent b170449 commit 41a793d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/github.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ impl GithubClient {
7676
) -> BoxFuture<Result<Response, reqwest::Error>> {
7777
#[derive(Debug, serde::Deserialize)]
7878
struct RateLimit {
79+
#[allow(unused)]
7980
pub limit: u64,
8081
pub remaining: u64,
8182
pub reset: u64,
@@ -90,7 +91,9 @@ impl GithubClient {
9091
struct Resources {
9192
pub core: RateLimit,
9293
pub search: RateLimit,
94+
#[allow(unused)]
9395
pub graphql: RateLimit,
96+
#[allow(unused)]
9497
pub source_import: RateLimit,
9598
}
9699

src/zulip.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ pub struct Request {
2222
#[derive(Debug, serde::Deserialize)]
2323
struct Message {
2424
sender_id: u64,
25+
#[allow(unused)]
2526
recipient_id: u64,
2627
sender_short_name: Option<String>,
2728
sender_full_name: String,
2829
stream_id: Option<u64>,
2930
// The topic of the incoming message. Not the stream name.
3031
subject: Option<String>,
32+
#[allow(unused)]
3133
#[serde(rename = "type")]
3234
type_: String,
3335
}

0 commit comments

Comments
 (0)