From b1af748739fadce312aafc1e5f09ced891c326b2 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Sun, 19 Feb 2023 23:13:44 -0800 Subject: cargo fmt + clippy --- adenosine-cli/src/bin/adenosine.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'adenosine-cli/src/bin/adenosine.rs') diff --git a/adenosine-cli/src/bin/adenosine.rs b/adenosine-cli/src/bin/adenosine.rs index 8176348..169e5d7 100644 --- a/adenosine-cli/src/bin/adenosine.rs +++ b/adenosine-cli/src/bin/adenosine.rs @@ -474,13 +474,13 @@ fn run(opt: Opt) -> Result<()> { ref nsid, ref fields, } => { - update_params_from_fields(&fields, &mut params); + update_params_from_fields(fields, &mut params); let body = value_from_fields(fields.clone()); match method { - XrpcMethod::Get => xrpc_client.get(&nsid, Some(params))?, + XrpcMethod::Get => xrpc_client.get(nsid, Some(params))?, XrpcMethod::Post => { require_auth_did(&opt, &mut xrpc_client)?; - xrpc_client.post(&nsid, Some(params), Some(body))? + xrpc_client.post(nsid, Some(params), Some(body))? } } } @@ -696,7 +696,7 @@ fn run(opt: Opt) -> Result<()> { .as_ref() .map(|v| v.to_string()) .unwrap_or(require_auth_did(&opt, &mut xrpc_client)?.to_string()); - params.insert("actor".to_string(), name.to_string()); + params.insert("actor".to_string(), name); xrpc_client.get(&Nsid::from_str("app.bsky.actor.getProfile")?, Some(params))? } Command::Bsky { -- cgit v1.2.3