Skip to content

Commit

Permalink
fix: Clippy append instead of extend
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiesler committed Apr 26, 2024
1 parent 15250a9 commit 1a85b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ where
let mut paginator = self;
loop {
if !paginator.page.has_more() {
data.extend(paginator.page.get_data_mut().drain(..));
data.append(paginator.page.get_data_mut());
break;
}
let next_paginator = paginator.next(client)?;
data.extend(paginator.page.get_data_mut().drain(..));
data.append(paginator.page.get_data_mut());
paginator = next_paginator
}
Ok(data)
Expand Down

0 comments on commit 1a85b9b

Please sign in to comment.