Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
itegulov committed Dec 18, 2024
1 parent 21cbcc5 commit 316893b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/api_server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub struct NodeServerHandle {
impl NodeServerHandle {
/// Tell the server to stop without waiting for the server to stop.
pub fn stop(&self) -> Result<(), AlreadyStoppedError> {
self.handles.iter().map(|handle| handle.stop()).collect()
self.handles.iter().try_for_each(|handle| handle.stop())
}

/// Wait for the server to stop.
Expand Down

0 comments on commit 316893b

Please sign in to comment.