Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Aug 13, 2024
1 parent b7e96d7 commit 9de39ba
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/docbuilder/rustwide_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,11 +827,10 @@ impl RustwideBuilder {
})
}

fn run_command(&self, command: Command) -> Result<(), CommandError> {
let mut storage = LogStorage::new(log::LevelFilter::Info);
let result = logging::capture(&storage, move || command.run());

result
fn capture_output<R>(f: impl FnOnce() -> R) -> (R, String) {
let storage = LogStorage::new(log::LevelFilter::Info);
let result = logging::capture(&storage, f);
(result, storage.to_string())
}

fn prepare_command<'ws, 'pl>(
Expand Down

0 comments on commit 9de39ba

Please sign in to comment.