We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc05629 commit 1fc7f01Copy full SHA for 1fc7f01
1 file changed
src/lib.rs
@@ -89,9 +89,7 @@ impl RpcClients {
89
}
90
91
pub fn helius_or_default(&self) -> &RpcClient {
92
- self.helius
93
- .as_ref()
94
- .map_or_else(|| self.default(), |helius| helius)
+ self.helius.as_ref().unwrap_or_else(|| self.default())
95
96
97
0 commit comments