Skip to content

Commit ff38645

Browse files
committed
make public some struct fields
1 parent 3ecf7d0 commit ff38645

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/report/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ fn url_encode(input: &str) -> String {
3535

3636
#[derive(Serialize, Deserialize)]
3737
pub struct TestResults {
38-
crates: Vec<CrateResult>,
38+
pub crates: Vec<CrateResult>,
3939
}
4040

4141
#[derive(Serialize, Deserialize, Clone)]
42-
struct CrateResult {
42+
pub struct CrateResult {
4343
name: String,
4444
url: String,
45-
res: Comparison,
45+
pub res: Comparison,
4646
runs: [Option<BuildTestResult>; 2],
4747
}
4848

49-
string_enum!(enum Comparison {
49+
string_enum!(pub enum Comparison {
5050
Regressed => "regressed",
5151
Fixed => "fixed",
5252
Skipped => "skipped",
@@ -212,7 +212,7 @@ pub fn gen<DB: ReadResults, W: ReportWriter + Display>(
212212
ex: &Experiment,
213213
dest: &W,
214214
config: &Config,
215-
) -> Fallible<()> {
215+
) -> Fallible<(TestResults)> {
216216
let res = generate_report(db, config, ex)?;
217217

218218
info!("writing results to {}", dest);
@@ -235,7 +235,7 @@ pub fn gen<DB: ReadResults, W: ReportWriter + Display>(
235235
info!("writing logs");
236236
write_logs(db, ex, dest, config)?;
237237

238-
Ok(())
238+
Ok(res)
239239
}
240240

241241
fn crate_to_name(c: &Crate, shas: &HashMap<GitHubRepo, String>) -> Fallible<String> {

0 commit comments

Comments
 (0)