Skip to content

Commit

Permalink
Merge pull request rust-lang#860 from k-nasa/fix_duplication
Browse files Browse the repository at this point in the history
Fix duplication with Cargo.toml
  • Loading branch information
Dylan-DPC authored Apr 22, 2019
2 parents 9693a8d + ecd0b91 commit 498b614
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
name = "mdbook"
version = "0.2.4-alpha.0"
authors = [
"Mathieu David <[email protected]>",
"Mathieu David <[email protected]>",
"Michael-F-Bryan <[email protected]>",
"Matt Ickstadt <[email protected]>"
]
description = "Create books from markdown files"
description = "Creates a book from markdown files"
documentation = "http://rust-lang-nursery.github.io/mdBook/index.html"
repository = "https://github.com/rust-lang-nursery/mdBook"
keywords = ["book", "gitbook", "rustbook", "markdown"]
Expand Down
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ use std::path::{Path, PathBuf};

mod cmd;

const NAME: &str = "mdBook";
const VERSION: &str = concat!("v", crate_version!());

fn main() {
init_logger();

// Create a list of valid arguments and sub-commands
let app = App::new(NAME)
.about("Creates a book from markdown files")
let app = App::new(crate_name!())
.about(crate_description!())
.author("Mathieu David <[email protected]>")
.version(VERSION)
.setting(AppSettings::GlobalVersion)
Expand Down

0 comments on commit 498b614

Please sign in to comment.