Skip to content
Snippets Groups Projects
Verified Commit 191f98f2 authored by Eduardo Trujillo's avatar Eduardo Trujillo
Browse files

style(cli): Run cargo fmt

parent b796a61c
No related branches found
No related tags found
Loading
use std::path::PathBuf; use std::path::PathBuf;
use clap::{Parser, Subcommand}; use clap::{Parser, Subcommand};
use collective::{cli::{AppOpts, ConfigurableAppOpts}, config::ConfigFileFormat}; use collective::{
cli::{AppOpts, ConfigurableAppOpts},
config::ConfigFileFormat,
};
use espresso::config::Config; use espresso::config::Config;
#[derive(Parser)] #[derive(Parser)]
...@@ -50,4 +53,4 @@ impl ConfigurableAppOpts<Config> for Opts { ...@@ -50,4 +53,4 @@ impl ConfigurableAppOpts<Config> for Opts {
vec![] vec![]
} }
} }
} }
\ No newline at end of file
use std::sync::Arc; use std::sync::Arc;
use espresso::{config::Config, bundle::{Bundler, packager}}; use espresso::{
bundle::{packager, Bundler},
config::Config,
};
use super::args::BundleOpts; use super::args::BundleOpts;
...@@ -10,4 +13,4 @@ pub async fn bundle(config: Arc<Config>, opts: BundleOpts) -> Result<(), package ...@@ -10,4 +13,4 @@ pub async fn bundle(config: Arc<Config>, opts: BundleOpts) -> Result<(), package
bundler.package(opts.source_path).await.unwrap(); bundler.package(opts.source_path).await.unwrap();
Ok(()) Ok(())
} }
\ No newline at end of file
pub mod args; pub mod args;
pub mod bundle; pub mod bundle;
pub mod serve; pub mod serve;
\ No newline at end of file
use std::{sync::{Arc, mpsc}, collections::HashSet};
use actix::System; use actix::System;
use collective::thread::{monitor::{ThreadMonitor, self}, self}; use collective::thread::{
use espresso::{config::Config, bundle::{Unbundler, self}, server::{Server, self}, stats::{StatsServer, self}}; self,
monitor::{self, ThreadMonitor},
};
use espresso::{
bundle::{self, Unbundler},
config::Config,
server::{self, Server},
stats::{self, StatsServer},
};
use lazy_static::lazy_static; use lazy_static::lazy_static;
use snafu::{Snafu, ResultExt}; use snafu::{ResultExt, Snafu};
use std::{
collections::HashSet,
sync::{mpsc, Arc},
};
use tokio::sync::RwLock; use tokio::sync::RwLock;
lazy_static! { lazy_static! {
...@@ -12,18 +23,10 @@ lazy_static! { ...@@ -12,18 +23,10 @@ lazy_static! {
#[derive(Snafu, Debug)] #[derive(Snafu, Debug)]
pub enum Error { pub enum Error {
Unbundle { Unbundle { source: bundle::Error },
source: bundle::Error, ServeError { source: Box<server::Error> },
}, ServeStats { source: stats::Error },
ServeError { MonitorError { source: monitor::Error },
source: Box<server::Error>,
},
ServeStats {
source: stats::Error,
},
MonitorError {
source: monitor::Error,
},
RecvNotify, RecvNotify,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment