diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-12 11:37:55 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-12 11:37:55 +0200 |
commit | cced88081324cfdea50bc5f32efea1f0fe58a3b4 (patch) | |
tree | 1a01d9b56175d9d015ff279cfc55c8a333573bfc | |
parent | 9a3f4c99e1da17b7552ebc281d46184f6594d242 (diff) | |
download | radicle-native-ci-cced88081324cfdea50bc5f32efea1f0fe58a3b4.tar.gz |
chore: remove unused argument to report::build_report
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rw-r--r-- | src/bin/radicle-native-ci.rs | 2 | ||||
-rw-r--r-- | src/report.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/radicle-native-ci.rs b/src/bin/radicle-native-ci.rs index 016a4fb..d2bf5fe 100644 --- a/src/bin/radicle-native-ci.rs +++ b/src/bin/radicle-native-ci.rs @@ -68,7 +68,7 @@ fn fallible_main() -> Result<(), NativeError> { builder.build()?.write()?; logfile.writeln(&format!("update report page in {}", config.state.display()))?; - if let Err(e) = report::build_report(&mut logfile, &config.state) { + if let Err(e) = report::build_report(&config.state) { logfile.writeln(&format!("report generation failed: {}", e))?; } logfile.writeln(&format!("radicle-native-ci ends: {:?}", result))?; diff --git a/src/report.rs b/src/report.rs index 31ffb0c..8fc9fd8 100644 --- a/src/report.rs +++ b/src/report.rs @@ -8,11 +8,11 @@ use radicle_ci_broker::msg::RunResult; use time::{macros::format_description, OffsetDateTime}; use walkdir::WalkDir; -use crate::{logfile::LogFile, runinfo::RunInfo}; +use crate::runinfo::RunInfo; const CSS: &str = include_str!("native-ci.css"); -pub fn build_report(_log: &mut LogFile, state: &Path) -> Result<(), ReportError> { +pub fn build_report(state: &Path) -> Result<(), ReportError> { let mut run_infos = collect_run_infos(state)?; run_infos.sort_by(|a, b| a.timestamp.partial_cmp(&b.timestamp).unwrap()); |