diff options
Diffstat (limited to 'fatcat-cli/src/commands.rs')
-rw-r--r-- | fatcat-cli/src/commands.rs | 6 |
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()), |