chore: Run cargo fmt

master
Jesper Håkansson 2 years ago
parent 927e716b87
commit 673bc296fc
  1. 2
      src/command/build.rs
  2. 4
      src/command/mod.rs
  3. 4
      src/command/test.rs
  4. 8
      src/lib.rs
  5. 4
      src/main.rs

@ -14,12 +14,12 @@ use crate::wasm_opt;
use crate::PBAR; use crate::PBAR;
use anyhow::{anyhow, bail, Error, Result}; use anyhow::{anyhow, bail, Error, Result};
use binary_install::Cache; use binary_install::Cache;
use clap::Args;
use log::info; use log::info;
use std::fmt; use std::fmt;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;
use std::time::Instant; use std::time::Instant;
use clap::{Args};
/// Everything required to configure and run the `wasm-pack build` command. /// Everything required to configure and run the `wasm-pack build` command.
#[allow(missing_docs)] #[allow(missing_docs)]

@ -18,10 +18,10 @@ use self::publish::{access::Access, publish};
use self::test::{Test, TestOptions}; use self::test::{Test, TestOptions};
use crate::install::InstallMode; use crate::install::InstallMode;
use anyhow::Result; use anyhow::Result;
use clap::builder::ValueParser;
use clap::Subcommand;
use log::info; use log::info;
use std::path::PathBuf; use std::path::PathBuf;
use clap::Subcommand;
use clap::builder::ValueParser;
/// The various kinds of commands that `wasm-pack` can execute. /// The various kinds of commands that `wasm-pack` can execute.
#[derive(Debug, Subcommand)] #[derive(Debug, Subcommand)]
pub enum Command { pub enum Command {

@ -9,13 +9,13 @@ use crate::manifest;
use crate::test::{self, webdriver}; use crate::test::{self, webdriver};
use anyhow::{bail, Result}; use anyhow::{bail, Result};
use binary_install::Cache; use binary_install::Cache;
use clap::builder::ValueParser;
use clap::Args;
use console::style; use console::style;
use log::info; use log::info;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;
use std::time::Instant; use std::time::Instant;
use clap::Args;
use clap::builder::ValueParser;
#[derive(Debug, Default, Args)] #[derive(Debug, Default, Args)]
#[command(allow_hyphen_values = true, trailing_var_arg = true)] #[command(allow_hyphen_values = true, trailing_var_arg = true)]

@ -13,12 +13,12 @@ extern crate strsim;
extern crate which; extern crate which;
#[macro_use] #[macro_use]
extern crate serde_derive; extern crate serde_derive;
extern crate serde_ignored;
extern crate serde_json;
extern crate binary_install; extern crate binary_install;
extern crate chrono; extern crate chrono;
extern crate dialoguer; extern crate dialoguer;
extern crate log; extern crate log;
extern crate serde_ignored;
extern crate serde_json;
extern crate toml; extern crate toml;
extern crate walkdir; extern crate walkdir;
@ -41,9 +41,9 @@ pub mod target;
pub mod test; pub mod test;
pub mod wasm_opt; pub mod wasm_opt;
use clap::Parser;
use clap::builder::ArgAction;
use crate::progressbar::{LogLevel, ProgressOutput}; use crate::progressbar::{LogLevel, ProgressOutput};
use clap::builder::ArgAction;
use clap::Parser;
/// The global progress bar and user-facing message output. /// The global progress bar and user-facing message output.
pub static PBAR: ProgressOutput = ProgressOutput::new(); pub static PBAR: ProgressOutput = ProgressOutput::new();

@ -2,19 +2,19 @@
extern crate anyhow; extern crate anyhow;
extern crate atty; extern crate atty;
extern crate clap;
extern crate env_logger; extern crate env_logger;
extern crate human_panic; extern crate human_panic;
extern crate log; extern crate log;
extern crate clap;
extern crate wasm_pack; extern crate wasm_pack;
extern crate which; extern crate which;
use anyhow::Result; use anyhow::Result;
use clap::Parser;
use std::env; use std::env;
use std::panic; use std::panic;
use std::sync::mpsc; use std::sync::mpsc;
use std::thread; use std::thread;
use clap::Parser;
use wasm_pack::{ use wasm_pack::{
build::{self, WasmPackVersion}, build::{self, WasmPackVersion},
command::run_wasm_pack, command::run_wasm_pack,

Loading…
Cancel
Save