diff --git a/Cargo.lock b/Cargo.lock index db17811..9cb3181 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -93,7 +93,7 @@ dependencies = [ [[package]] name = "cargo-get" -version = "1.1.0" +version = "1.1.1" dependencies = [ "assert_cmd", "cargo_toml", diff --git a/Cargo.toml b/Cargo.toml index 83ce365..1829589 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-get" -version = "1.1.0" +version = "1.1.1" authors = ["Nicolai Unrein "] edition = "2018" description = "Cargo plugin to easily query information from Cargo.toml files" diff --git a/README.md b/README.md index 02a851a..a04ae18 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ [![crates.io](https://img.shields.io/crates/v/cargo-get.svg)](https://crates.io/crates/cargo-get) [![CI](https://github.com/nicolaiunrein/cargo-get/actions/workflows/ci.yaml/badge.svg)](https://github.com/nicolaiunrein/cargo-get/actions/workflows/ci.yaml) -[![build-binary](https://github.com/nicolaiunrein/cargo-get/actions/workflows/build-binary.yml/badge.svg)](https://github.com/nicolaiunrein/cargo-get/releases/latest) -[![github-actions](https://github.com/nicolaiunrein/cargo-get/actions/workflows/github-actions.yml/badge.svg)](https://github.com/nicolaiunrein/cargo-get/actions/workflows/github-actions.yml) +[![GitHub Release](https://img.shields.io/github/v/release/nicolaiunrein/cargo-get?label=download)](https://github.com/nicolaiunrein/cargo-get/releases/latest) ### Overview diff --git a/src/main.rs b/src/main.rs index 66d36f1..9821a5f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -81,9 +81,10 @@ pub fn output(cli: cli::Cli) -> Result> { .links() .ok_or(NotSpecified("package.links"))? .to_string(), - cli::Command::PackageDescription => { - package()?.description().unwrap_or_default().to_string() - } + cli::Command::PackageDescription => package()? + .description() + .ok_or(NotSpecified("package.links"))? + .to_string(), cli::Command::PackageCategories => package()?.categories().join(&delim_string), cli::Command::PackageRustVersion => package()?