Purge of unwrap version 2

This commit is contained in:
Ali Bektas 2023-06-30 16:31:20 +02:00
parent 72aeaef5f3
commit cfbeb66a63

View File

@ -2051,7 +2051,7 @@ fn resource_ops_supported(config: &Config, kind: ResourceOperationKind) -> anyho
.as_ref()
})();
if resops.is_none() || !resops.unwrap().contains(&kind) {
if !matches!(resops, Some(resops) if resops.contains(&kind)) {
return Err(LspError::new(
ErrorCode::RequestFailed as i32,
format!(