Skip to content

Commit 1fc7f01

Browse files
committed
clippy
1 parent bc05629 commit 1fc7f01

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ impl RpcClients {
8989
}
9090

9191
pub fn helius_or_default(&self) -> &RpcClient {
92-
self.helius
93-
.as_ref()
94-
.map_or_else(|| self.default(), |helius| helius)
92+
self.helius.as_ref().unwrap_or_else(|| self.default())
9593
}
9694
}
9795

0 commit comments

Comments
 (0)