Skip to content

Commit 556cba2

Browse files
authored
style: fix warning in examples (#758)
This fixes a new compiler warning in the `tower-load` example. Signed-off-by: Eliza Weisman <[email protected]>
1 parent 1c2dffd commit 556cba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/examples/tower-load.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ async fn load_gen(addr: SocketAddr) -> Result<(), Err> {
318318
.layer(request_span::layer(req_span))
319319
.timeout(Duration::from_millis(200))
320320
.service(Client::new());
321-
322-
while let Some(_) = time::interval(Duration::from_millis(50)).next().await {
321+
let mut interval = time::interval(Duration::from_millis(50));
322+
while interval.next().await.is_some() {
323323
let authority = format!("{}", addr);
324324
let mut svc = svc.clone().ready_oneshot().await?;
325325

0 commit comments

Comments
 (0)