Skip to content

Commit

Permalink
chore: fix a new warning from Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-yantsen committed Aug 22, 2023
1 parent 1486312 commit f73997f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/plex-api/tests/fixtures/online/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ async fn get_server(client: HttpClient) -> Server {

let r = Server::new(url.clone(), client.clone()).await;

if r.is_ok() {
return r.unwrap();
if let Ok(srv) = r {
return srv;
}

if attempt < 10 {
Expand Down

0 comments on commit f73997f

Please sign in to comment.