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>>; 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; use crate::cmd::CommandError;
pub struct CommandDefault; pub struct CommandDefault;

View File

@@ -1,6 +1,6 @@
use std::fs::{ self, File, }; use std::fs::{ self, File };
use clap::{ Arg, ArgMatches, SubCommand, App, }; use clap::{ Arg, ArgMatches, SubCommand, App };
use crate::cmd::{ Command, CommandError, }; use crate::cmd::{ Command, CommandError };
const CARGO_TOML_FILE: &str = "Cargo.toml"; const CARGO_TOML_FILE: &str = "Cargo.toml";

View File

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