Skip to content

Commit 4839fd4

Browse files
Drop unused fields
1 parent 96470e0 commit 4839fd4

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

src/github/client.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ const PER_PAGE: u32 = 100;
2525
#[derive(Debug)]
2626
pub struct Client {
2727
client: reqwest::Client,
28-
rate_limit: u32,
29-
rate_limit_timeout: DateTime<Utc>,
3028
}
3129

3230
impl Client {
@@ -49,8 +47,6 @@ impl Client {
4947
.default_headers(headers)
5048
.build()
5149
.unwrap(),
52-
rate_limit: u32::MAX,
53-
rate_limit_timeout: Utc::now(),
5450
}
5551
}
5652

src/github/models.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ impl MilestoneFromJson {
4848
#[derive(Debug, Deserialize)]
4949
pub struct LabelFromJson {
5050
name: String,
51-
color: String,
5251
}
5352

5453
pub type PullRequestUrls = BTreeMap<String, String>;

src/teams.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ lazy_static! {
2323

2424
#[derive(Debug, Deserialize)]
2525
pub struct RfcbotConfig {
26-
#[serde(default)]
27-
include_rust_team: bool,
2826
fcp_behaviors: BTreeMap<String, FcpBehavior>,
2927
teams: RfcbotTeams,
3028
#[serde(skip)]
@@ -33,7 +31,9 @@ pub struct RfcbotConfig {
3331

3432
impl RfcbotConfig {
3533
/// Retrive an iterator over all the team labels.
36-
pub fn team_labels(&self) -> impl Iterator<Item = &TeamLabel> { self.teams().map(|(k, _)| k) }
34+
pub fn team_labels(&self) -> impl Iterator<Item = &TeamLabel> {
35+
self.teams().map(|(k, _)| k)
36+
}
3737

3838
/// Retrive an iterator over all the (team label, team) pairs.
3939
pub fn teams(&self) -> impl Iterator<Item = (&TeamLabel, &Team)> {
@@ -94,13 +94,14 @@ enum RfcbotTeams {
9494

9595
#[derive(Debug, Deserialize)]
9696
pub struct Team {
97-
name: String,
9897
ping: String,
9998
members: Vec<String>,
10099
}
101100

102101
impl Team {
103-
pub fn ping(&self) -> &str { &self.ping }
102+
pub fn ping(&self) -> &str {
103+
&self.ping
104+
}
104105

105106
pub fn member_logins(&self) -> impl Iterator<Item = &str> {
106107
self.members.iter().map(std::string::String::as_str)

0 commit comments

Comments
 (0)