summaryrefslogtreecommitdiffstats
path: root/fatcat-cli/src/main.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2022-09-07 19:59:14 -0700
committerBryan Newbold <bnewbold@archive.org>2022-09-07 19:59:14 -0700
commitfd61e1aeefdfb6125e0b754d56a39e7700bb7a39 (patch)
tree19408279f3bf0fbc2b5aac43948736f00671330d /fatcat-cli/src/main.rs
parentd941d472ada2b5943142751cf2c7e01b66f1d17a (diff)
downloadfatcat-cli-fd61e1aeefdfb6125e0b754d56a39e7700bb7a39.tar.gz
fatcat-cli-fd61e1aeefdfb6125e0b754d56a39e7700bb7a39.zip
make lint (clippy) cleanups
Diffstat (limited to 'fatcat-cli/src/main.rs')
-rw-r--r--fatcat-cli/src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/fatcat-cli/src/main.rs b/fatcat-cli/src/main.rs
index 5441f36..1d51729 100644
--- a/fatcat-cli/src/main.rs
+++ b/fatcat-cli/src/main.rs
@@ -644,9 +644,7 @@ fn run(opt: Opt) -> Result<()> {
let hit = hit?;
match (index_json, entity_json, entity_type) {
(false, false, _) => unreachable!("case handled above"),
- (true, _, _) => {
- writeln!(&mut std::io::stdout(), "{}", hit.to_string())?
- }
+ (true, _, _) => writeln!(&mut std::io::stdout(), "{}", hit)?,
(false, true, SearchEntityType::Release) => {
let specifier =
Specifier::Release(hit["ident"].as_str().unwrap().to_string());