aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat-cli/src/commands.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/commands.rs
parentd941d472ada2b5943142751cf2c7e01b66f1d17a (diff)
downloadfatcat-cli-fd61e1aeefdfb6125e0b754d56a39e7700bb7a39.tar.gz
fatcat-cli-fd61e1aeefdfb6125e0b754d56a39e7700bb7a39.zip
make lint (clippy) cleanups
Diffstat (limited to 'fatcat-cli/src/commands.rs')
-rw-r--r--fatcat-cli/src/commands.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/fatcat-cli/src/commands.rs b/fatcat-cli/src/commands.rs
index da23c34..6558d52 100644
--- a/fatcat-cli/src/commands.rs
+++ b/fatcat-cli/src/commands.rs
@@ -211,7 +211,7 @@ pub fn print_changelog_entries(entry_list: Vec<models::ChangelogEntry>, json: bo
tw,
"{}\t{}\t{}\t{}",
entry.index,
- HumanTime::from(entry.timestamp).to_string(),
+ HumanTime::from(entry.timestamp),
entry
.editgroup
.as_ref()
@@ -264,7 +264,7 @@ pub fn print_entity_histories(
"{}\t{}\t{}\t{}\t{}",
history.changelog_entry.index,
state,
- HumanTime::from(history.changelog_entry.timestamp).to_string(),
+ HumanTime::from(history.changelog_entry.timestamp),
history
.editgroup
.editor
@@ -542,7 +542,7 @@ impl BatchGrouper {
.as_str()
.ok_or_else(|| anyhow!("expect entity JSON to have 'ident' field"))?;
let editgroup_id = self.increment_editgroup(api_client)?;
- let mut entity = entity_model_from_json_str(self.entity_type, &json_str)?;
+ let mut entity = entity_model_from_json_str(self.entity_type, json_str)?;
entity.mutate(mutations)?;
api_client.update_entity_from_json(
Specifier::from_ident(self.entity_type, ident.to_string()),