summaryrefslogtreecommitdiffstats
path: root/fatcat-cli/src/main.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-05-25 17:22:48 -0700
committerBryan Newbold <bnewbold@archive.org>2021-05-25 17:22:48 -0700
commit0d4541cc65ea6343ce0498f3c1a40dcb24b00024 (patch)
tree0a4547d7f5119bc30ba0ed7952055cfb2e65af74 /fatcat-cli/src/main.rs
parent6c35836bd44e38cb78b110c7c0da507859e4c7ed (diff)
downloadfatcat-cli-0d4541cc65ea6343ce0498f3c1a40dcb24b00024.tar.gz
fatcat-cli-0d4541cc65ea6343ce0498f3c1a40dcb24b00024.zip
cargo clippy clean
Diffstat (limited to 'fatcat-cli/src/main.rs')
-rw-r--r--fatcat-cli/src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/fatcat-cli/src/main.rs b/fatcat-cli/src/main.rs
index 49f73fe..bdab729 100644
--- a/fatcat-cli/src/main.rs
+++ b/fatcat-cli/src/main.rs
@@ -155,6 +155,7 @@ enum Command {
#[structopt(long = "--hide")]
hide: Option<String>,
+ #[allow(dead_code)]
#[structopt(long)]
json: bool,
@@ -379,13 +380,14 @@ fn run(opt: Opt) -> Result<()> {
specifier,
expand,
hide,
- json,
+ json: _,
toml,
} => {
let result = specifier.get_from_api(&mut api_client, expand, hide)?;
if toml {
writeln!(&mut std::io::stdout(), "{}", result.to_toml_string()?)?
- } else if json || true {
+ } else {
+ // "if json"
writeln!(
&mut std::io::stdout(),
"{}",