diff options
| author | Bryan Newbold <bnewbold@archive.org> | 2021-02-15 14:48:12 -0800 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@archive.org> | 2021-02-15 14:48:12 -0800 | 
| commit | e992af1ff3ae60f8797cb96296901249816b071f (patch) | |
| tree | 5bb07fa6222dd5d0be652b7cce8784349530d9a7 /fatcat-cli/src/main.rs | |
| parent | 5beeca490988227d2d6de9dfc2bdfa7d6798c5df (diff) | |
| download | fatcat-cli-e992af1ff3ae60f8797cb96296901249816b071f.tar.gz fatcat-cli-e992af1ff3ae60f8797cb96296901249816b071f.zip | |
partial clippy lint cleanup
Diffstat (limited to 'fatcat-cli/src/main.rs')
| -rw-r--r-- | fatcat-cli/src/main.rs | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/fatcat-cli/src/main.rs b/fatcat-cli/src/main.rs index f5f5d8b..15301b5 100644 --- a/fatcat-cli/src/main.rs +++ b/fatcat-cli/src/main.rs @@ -402,7 +402,7 @@ fn run(opt: Opt) -> Result<()> {              let ee = api_client.create_entity_from_json(                  entity_type,                  &json_str, -                editgroup_id.as_string(), +                editgroup_id.into_string(),              )?;              writeln!(                  &mut std::io::stdout(), @@ -433,7 +433,7 @@ fn run(opt: Opt) -> Result<()> {              let ee = api_client.update_entity_from_json(                  exact_specifier,                  &json_str, -                editgroup_id.as_string(), +                editgroup_id.into_string(),              )?;              writeln!(                  &mut std::io::stdout(), @@ -451,7 +451,7 @@ fn run(opt: Opt) -> Result<()> {              let ee = edit_entity_locally(                  &mut api_client,                  specifier, -                editgroup_id.as_string(), +                editgroup_id.into_string(),                  json,                  editing_command,              )?; @@ -472,7 +472,7 @@ fn run(opt: Opt) -> Result<()> {                  }                  other => {                      return Err(anyhow!("{:?}", other)) -                        .with_context(|| format!("failed to fetch changelogs")) +                        .with_context(|| "failed to fetch changelogs".to_string())                  }              }          } @@ -669,7 +669,7 @@ fn run(opt: Opt) -> Result<()> {              editgroup_id,          } => {              let result = api_client -                .delete_entity(specifier.clone(), editgroup_id.as_string()) +                .delete_entity(specifier.clone(), editgroup_id.into_string())                  .with_context(|| format!("delete entity: {:?}", specifier))?;              println!("{}", serde_json::to_string(&result)?);          } @@ -749,7 +749,7 @@ fn run(opt: Opt) -> Result<()> {          Command::Editgroups {              cmd: EditgroupsCommand::Accept { editgroup_id },          } => { -            let msg = api_client.accept_editgroup(editgroup_id.as_string())?; +            let msg = api_client.accept_editgroup(editgroup_id.into_string())?;              writeln!(                  &mut std::io::stdout(),                  "{}", @@ -759,7 +759,7 @@ fn run(opt: Opt) -> Result<()> {          Command::Editgroups {              cmd: EditgroupsCommand::Submit { editgroup_id },          } => { -            let msg = api_client.update_editgroup_submit(editgroup_id.as_string(), true)?; +            let msg = api_client.update_editgroup_submit(editgroup_id.into_string(), true)?;              writeln!(                  &mut std::io::stdout(),                  "{}", @@ -769,7 +769,7 @@ fn run(opt: Opt) -> Result<()> {          Command::Editgroups {              cmd: EditgroupsCommand::Unsubmit { editgroup_id },          } => { -            let msg = api_client.update_editgroup_submit(editgroup_id.as_string(), false)?; +            let msg = api_client.update_editgroup_submit(editgroup_id.into_string(), false)?;              writeln!(                  &mut std::io::stdout(),                  "{}", | 
