Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | helix-lsp-types/src/code_action.rs | 3 | ||||
| -rw-r--r-- | helix-lsp-types/src/lib.rs | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/helix-lsp-types/src/code_action.rs b/helix-lsp-types/src/code_action.rs index eed0e33e..93633c2d 100644 --- a/helix-lsp-types/src/code_action.rs +++ b/helix-lsp-types/src/code_action.rs @@ -6,7 +6,7 @@ use serde::{Deserialize, Serialize}; use serde_json::Value; -use std::borrow::Cow; +use std::{borrow::Cow, ops::DerefPure}; #[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)] #[serde(untagged)] pub enum CodeActionProviderCapability { @@ -159,6 +159,7 @@ impl std::ops::Deref for CodeActionKind { self.as_str() } } +unsafe impl DerefPure for CodeActionKind {} impl CodeActionKind { /// Empty kind. diff --git a/helix-lsp-types/src/lib.rs b/helix-lsp-types/src/lib.rs index 06d75367..32bfb282 100644 --- a/helix-lsp-types/src/lib.rs +++ b/helix-lsp-types/src/lib.rs @@ -15,8 +15,7 @@ able to parse any URI, such as `urn:isbn:0451450523`. */ #![allow(non_upper_case_globals)] -#![forbid(unsafe_code)] - +#![feature(deref_pure_trait)] use bitflags::bitflags; use std::{collections::HashMap, fmt::Debug}; |