Skip to content

Commit

Permalink
chore: add missing debug derive and update spinner message (#1478)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored May 3, 2022
1 parent 3dfa6e1 commit e4f6b1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ impl Spinner {
/// A spinner used as [`ethers::solc::report::Reporter`]
///
/// This reporter will prefix messages with a spinning cursor
#[derive(Debug)]
pub struct SpinnerReporter {
/// the timeout in ms
sender: Arc<Mutex<mpsc::Sender<SpinnerMsg>>>,
Expand Down Expand Up @@ -232,12 +233,15 @@ impl Reporter for SpinnerReporter {
fn on_solc_success(
&self,
_solc: &Solc,
_version: &Version,
version: &Version,
output: &CompilerOutput,
duration: &Duration,
) {
self.solc_io_report.log_compiler_output(output);
self.send_msg(format!("Solc finished in {:.2?}", duration));
self.send_msg(format!(
"Solc {}.{}.{} finished in {:.2?}",
version.major, version.minor, version.patch, duration
));
}

/// Invoked before a new [`Solc`] bin is installed
Expand Down

0 comments on commit e4f6b1d

Please sign in to comment.