From 9b050fd13b36df0002fceedcb32ec8ab21de4db2 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 14 Jun 2020 00:15:56 +0800 Subject: [PATCH] ref cmd_newcliapp --- src/cmd_newcliapp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd_newcliapp.rs b/src/cmd_newcliapp.rs index 0efc8f5..7af9d51 100644 --- a/src/cmd_newcliapp.rs +++ b/src/cmd_newcliapp.rs @@ -2,8 +2,6 @@ use std::fs::{ self, File, }; use clap::{ Arg, ArgMatches, SubCommand, App, }; use crate::cmd::{ Command, CommandError, }; -pub struct CommandNewCliApp; - const CARGO_TOML_FILE: &str = "Carto.toml"; const MAIN_RS: &str = include_str!("main.rs_template"); @@ -12,6 +10,8 @@ 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; + impl Command for CommandNewCliApp { fn subcommand<'a>(&self) -> App<'a, 'a> {