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;
2525#[ derive( Debug ) ]
2626pub struct Client {
2727 client : reqwest:: Client ,
28- rate_limit : u32 ,
29- rate_limit_timeout : DateTime < Utc > ,
3028}
3129
3230impl 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
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ impl MilestoneFromJson {
4848#[ derive( Debug , Deserialize ) ]
4949pub struct LabelFromJson {
5050 name : String ,
51- color : String ,
5251}
5352
5453pub type PullRequestUrls = BTreeMap < String , String > ;
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ lazy_static! {
2323
2424#[ derive( Debug , Deserialize ) ]
2525pub 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
3432impl 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 ) ]
9696pub struct Team {
97- name : String ,
9897 ping : String ,
9998 members : Vec < String > ,
10099}
101100
102101impl 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)
You can’t perform that action at this time.
0 commit comments