fix: 🐛 Remove stopwatch

This commit is contained in:
Sergio Gasquez 2022-12-22 10:51:37 +00:00
parent b0b338e0c2
commit 26986b5c8a

View File

@ -24,7 +24,6 @@ use espup::{
};
use log::{debug, info, warn};
use miette::{IntoDiagnostic, Result};
use std::time::Instant;
use std::{
collections::HashSet,
fs::{remove_dir_all, remove_file, File},
@ -130,8 +129,6 @@ pub struct UninstallOpts {
/// Installs the Rust for ESP chips environment
async fn install(args: InstallOpts) -> Result<()> {
let start = Instant::now();
initialize_logger(&args.log_level);
check_for_update(env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"));
info!("{} Installing esp-rs", emoji::DISC);
@ -272,8 +269,6 @@ async fn install(args: InstallOpts) -> Result<()> {
"{} Please, source the export file, as state above, to properly setup the environment!",
emoji::WARN
);
let duration = start.elapsed();
println!("Time elapsed in expensive_function() is: {:?}", duration);
Ok(())
}