File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ const PER_PAGE: u32 = 100;
25
25
#[ derive( Debug ) ]
26
26
pub struct Client {
27
27
client : reqwest:: Client ,
28
- rate_limit : u32 ,
29
- rate_limit_timeout : DateTime < Utc > ,
30
28
}
31
29
32
30
impl Client {
@@ -49,8 +47,6 @@ impl Client {
49
47
. default_headers ( headers)
50
48
. build ( )
51
49
. unwrap ( ) ,
52
- rate_limit : u32:: MAX ,
53
- rate_limit_timeout : Utc :: now ( ) ,
54
50
}
55
51
}
56
52
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ impl MilestoneFromJson {
48
48
#[ derive( Debug , Deserialize ) ]
49
49
pub struct LabelFromJson {
50
50
name : String ,
51
- color : String ,
52
51
}
53
52
54
53
pub type PullRequestUrls = BTreeMap < String , String > ;
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ lazy_static! {
23
23
24
24
#[ derive( Debug , Deserialize ) ]
25
25
pub struct RfcbotConfig {
26
- #[ serde( default ) ]
27
- include_rust_team : bool ,
28
26
fcp_behaviors : BTreeMap < String , FcpBehavior > ,
29
27
teams : RfcbotTeams ,
30
28
#[ serde( skip) ]
@@ -33,7 +31,9 @@ pub struct RfcbotConfig {
33
31
34
32
impl RfcbotConfig {
35
33
/// 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
+ }
37
37
38
38
/// Retrive an iterator over all the (team label, team) pairs.
39
39
pub fn teams ( & self ) -> impl Iterator < Item = ( & TeamLabel , & Team ) > {
@@ -94,13 +94,14 @@ enum RfcbotTeams {
94
94
95
95
#[ derive( Debug , Deserialize ) ]
96
96
pub struct Team {
97
- name : String ,
98
97
ping : String ,
99
98
members : Vec < String > ,
100
99
}
101
100
102
101
impl Team {
103
- pub fn ping ( & self ) -> & str { & self . ping }
102
+ pub fn ping ( & self ) -> & str {
103
+ & self . ping
104
+ }
104
105
105
106
pub fn member_logins ( & self ) -> impl Iterator < Item = & str > {
106
107
self . members . iter ( ) . map ( std:: string:: String :: as_str)
You can’t perform that action at this time.
0 commit comments