Skip to content

Commit 723dbb7

Browse files
author
Mingshen Sun
committed
other/dummy: write util name in the const NAME variable
1 parent 076dbb2 commit 723dbb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libmesabox/src/other/dummy.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use clap::{App, Arg, ArgMatches};
1010
use std::io::{self, Write};
1111
use {UtilSetup, ArgsIter, Result, UtilRead, UtilWrite};
1212

13+
const NAME: &str = "dummy";
1314
pub const DESCRIPTION: &str = "A dummy utility to demonstrate the framework";
1415

1516
#[derive(Fail, Debug)]
@@ -42,7 +43,7 @@ where
4243
}
4344

4445
fn create_app() -> App<'static, 'static> {
45-
util_app!("dummy")
46+
util_app!(NAME)
4647
.arg(Arg::with_name("about")
4748
.short("a")
4849
.long("about")

0 commit comments

Comments
 (0)