mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: use is_none_or instead of map_or (#13035)
This commit is contained in:
@ -335,7 +335,7 @@ pub fn shared_capability_offsets(
|
||||
// highest wins, others are ignored
|
||||
if shared_capabilities
|
||||
.get(&peer_capability.name)
|
||||
.map_or(true, |v| peer_capability.version > v.version)
|
||||
.is_none_or(|v| peer_capability.version > v.version)
|
||||
{
|
||||
shared_capabilities.insert(
|
||||
peer_capability.name.clone(),
|
||||
|
||||
Reference in New Issue
Block a user