summaryrefslogtreecommitdiffstats
path: root/adenosine-cli/src/bin/adenosine.rs
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@robocracy.org>2023-02-19 23:13:44 -0800
committerbryan newbold <bnewbold@robocracy.org>2023-02-19 23:16:03 -0800
commitb1af748739fadce312aafc1e5f09ced891c326b2 (patch)
tree6b26b076f2ad7100b562560d9054545d2a018d3b /adenosine-cli/src/bin/adenosine.rs
parent7730ef1fac57ef5e67b0fcb380b45bea649695ee (diff)
downloadadenosine-b1af748739fadce312aafc1e5f09ced891c326b2.tar.gz
adenosine-b1af748739fadce312aafc1e5f09ced891c326b2.zip
cargo fmt + clippy
Diffstat (limited to 'adenosine-cli/src/bin/adenosine.rs')
-rw-r--r--adenosine-cli/src/bin/adenosine.rs8
1 files changed, 4 insertions, 4 deletions
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 {