diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-05-25 17:22:48 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-05-25 17:22:48 -0700 |
commit | 0d4541cc65ea6343ce0498f3c1a40dcb24b00024 (patch) | |
tree | 0a4547d7f5119bc30ba0ed7952055cfb2e65af74 /fatcat-cli/src/main.rs | |
parent | 6c35836bd44e38cb78b110c7c0da507859e4c7ed (diff) | |
download | fatcat-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.rs | 6 |
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(), "{}", |