style: code style

This commit is contained in:
2020-08-02 23:28:25 +08:00
parent 02cb88ceb5
commit cfe3933422
4 changed files with 12 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
use clap::{ ArgMatches, App, };
use clap::{ ArgMatches, App };
pub type CommandError = Result<(), Box<dyn std::error::Error>>;

View File

@@ -1,4 +1,4 @@
use clap::{ App, Arg, ArgMatches, };
use clap::{ App, Arg, ArgMatches };
use crate::cmd::CommandError;
pub struct CommandDefault;

View File

@@ -1,14 +1,14 @@
use std::fs::{ self, File, };
use clap::{ Arg, ArgMatches, SubCommand, App, };
use crate::cmd::{ Command, CommandError, };
use std::fs::{ self, File };
use clap::{ Arg, ArgMatches, SubCommand, App };
use crate::cmd::{ Command, CommandError };
const CARGO_TOML_FILE: &str = "Cargo.toml";
const MAIN_RS: &str = include_str!("main.rs_template");
const CMD_RS: &str = include_str!("cmd.rs");
const CMD_DEFAULT_RS: &str = include_str!("cmd_default.rs");
const CMD_SAMPLE_RS: &str = include_str!("cmd_sample.rs");
const CARGO_TOML: &str = include_str!("Carto.toml_template");
const MAIN_RS: &str = include_str!("main.rs_template");
const CMD_RS: &str = include_str!("cmd.rs");
const CMD_DEFAULT_RS: &str = include_str!("cmd_default.rs");
const CMD_SAMPLE_RS: &str = include_str!("cmd_sample.rs");
const CARGO_TOML: &str = include_str!("Carto.toml_template");
pub struct CommandNewCliApp;

View File

@@ -1,5 +1,5 @@
use clap::{ ArgMatches, SubCommand, App, };
use crate::cmd::{ Command, CommandError, };
use clap::{ ArgMatches, SubCommand, App };
use crate::cmd::{ Command, CommandError };
pub struct CommandSample;