diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-09-07 19:59:14 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-09-07 19:59:14 -0700 |
commit | fd61e1aeefdfb6125e0b754d56a39e7700bb7a39 (patch) | |
tree | 19408279f3bf0fbc2b5aac43948736f00671330d /fatcat-cli/src/main.rs | |
parent | d941d472ada2b5943142751cf2c7e01b66f1d17a (diff) | |
download | fatcat-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.rs | 4 |
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()); |