style: code style

This commit is contained in:
2020-08-02 23:14:13 +08:00
parent d74d8e2074
commit 104aadd4b2

View File

@@ -8,15 +8,11 @@ const B : &str = " ";
const NL : &str = "\n";
fn main() -> Result<(), Box<dyn std::error::Error>> {
let matches = App::new("QR cli")
.version("0.1.1")
.author("Hatter Jiang <jht5945@gmail.com>")
.about("QR command line tool")
.arg(Arg::with_name("INPUT")
.help("Set the QR input")
.required(true)
.index(1))
.get_matches();
let app = App::new("QR cli").version("0.1.1")
.author("Hatter Jiang <jht5945@gmail.com>")
.about("QR command line tool")
.arg(Arg::with_name("INPUT").help("Set the QR input").required(true).index(1));
let matches = app.get_matches();
let mut input: Option<String> = None;
if let Some(input_arg) = matches.args.get("INPUT") {