Skip to content

Commit cfbeb66

Browse files
committed
Purge of unwrap version 2
1 parent 72aeaef commit cfbeb66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/handlers/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ fn resource_ops_supported(config: &Config, kind: ResourceOperationKind) -> anyho
20512051
.as_ref()
20522052
})();
20532053

2054-
if resops.is_none() || !resops.unwrap().contains(&kind) {
2054+
if !matches!(resops, Some(resops) if resops.contains(&kind)) {
20552055
return Err(LspError::new(
20562056
ErrorCode::RequestFailed as i32,
20572057
format!(

0 commit comments

Comments
 (0)