feat: take impl IntoUrl instead of only &str

This commit is contained in:
DarkCat09 2024-08-30 11:02:45 +04:00
parent 3f2b0b5fd2
commit 8628b78598
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82
4 changed files with 57 additions and 17 deletions

View file

@ -21,7 +21,7 @@ async fn main() -> Result<(), LibError> {
let config = parse_args();
let client = build_client(&config).await?;
let mut resp = client.request(&config.url).await?;
let mut resp = client.request(config.url).await?;
{
let status_code = resp.status().status_code();