summaryrefslogtreecommitdiff
path: root/cli/lsp/logging.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp/logging.rs')
-rw-r--r--cli/lsp/logging.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/lsp/logging.rs b/cli/lsp/logging.rs
index b3fc06d89..88392dca2 100644
--- a/cli/lsp/logging.rs
+++ b/cli/lsp/logging.rs
@@ -21,7 +21,11 @@ pub fn set_lsp_log_level(level: log::Level) {
pub fn lsp_log_level() -> log::Level {
let level = LSP_LOG_LEVEL.load(Ordering::SeqCst);
- unsafe { std::mem::transmute(level) }
+ // TODO(bartlomieju):
+ #[allow(clippy::undocumented_unsafe_blocks)]
+ unsafe {
+ std::mem::transmute(level)
+ }
}
/// Use this macro to do "info" logs in the lsp code. This allows