A better Rust ATProto crate

expected to be able to pass a url::Url to AuthenticatedClient::new for PDS #6

closed
opened by bad-example.com

for example, reqwest accepts U: IntoUrl for for ::get. jacquard expects CowStr. easy enough to get a url there, but it might be nice to be able to pass a typed URL where you have one. (in my case i've parsed the pds out of clap)

workaround is easy enough if a bit of a mouthful, args.pds.to_string().into()

updated workaround,

let pds_uri = args.pds.as_str().trim_end_matches('/').to_string().into();
let mut client = AuthenticatedClient::new(reqwest::Client::new(), pds_uri);

Closing because all the changes fix this

yes! happily updated the bot code, worked perfectly.

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:hdhoaan3xa3jiuq4fg4mefid/sh.tangled.repo.issue/3m2fflpstab22