mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-03 18:30:43 +08:00
chore: remove unused argument to report::build_report
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
@@ -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))?;
|
||||
|
||||
+2
-2
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user