@@ -1540,14 +1540,14 @@ where
1540
1540
}
1541
1541
}
1542
1542
1543
- #[ derive( Serialize , Deserialize , Debug , Clone , Default ) ]
1543
+ #[ derive( Serialize , Deserialize , Debug , Clone , Default , PartialEq ) ]
1544
1544
pub struct PerLanguageCount {
1545
1545
counts : HashMap < String , u64 > ,
1546
1546
adv_counts : HashMap < String , u64 > ,
1547
1547
}
1548
1548
1549
1549
impl PerLanguageCount {
1550
- fn increment ( & mut self , kind : & CompilerKind , lang : & Language ) {
1550
+ pub fn increment ( & mut self , kind : & CompilerKind , lang : & Language ) {
1551
1551
let lang_comp_key = kind. lang_comp_kind ( lang) ;
1552
1552
let adv_count = self . adv_counts . entry ( lang_comp_key) . or_insert ( 0 ) ;
1553
1553
* adv_count += 1 ;
@@ -1575,7 +1575,7 @@ impl PerLanguageCount {
1575
1575
}
1576
1576
1577
1577
/// Statistics about the server.
1578
- #[ derive( Serialize , Deserialize , Clone , Debug ) ]
1578
+ #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq ) ]
1579
1579
pub struct ServerStats {
1580
1580
/// The count of client compile requests.
1581
1581
pub compile_requests : u64 ,
0 commit comments