]> git.lizzy.rs Git - rust.git/commitdiff
Move analysis config structure to the config.rs
authorIgor Aleksanov <popzxc@yandex.ru>
Tue, 18 Aug 2020 10:35:36 +0000 (13:35 +0300)
committerIgor Aleksanov <popzxc@yandex.ru>
Tue, 18 Aug 2020 10:35:36 +0000 (13:35 +0300)
crates/ide/src/lib.rs
crates/rust-analyzer/src/config.rs

index a19a379c65db3a8bbcd1f9c752a953bb4818afaf..4b797f374c0e4ac504e651daccd8fe1f2120ee27 100644 (file)
@@ -99,12 +99,6 @@ macro_rules! eprintln {
 
 pub type Cancelable<T> = Result<T, Canceled>;
 
-/// Configuration parameters for the analysis run.
-#[derive(Debug, Default, Clone)]
-pub struct AnalysisConfig {
-    pub disabled_diagnostics: HashSet<String>,
-}
-
 #[derive(Debug)]
 pub struct Diagnostic {
     pub name: Option<String>,
index 4e3ab05b2d130b0d40985cffe68341638ae2c91a..44fd7c286fdee443481ddc605e70ef98f36dfe63 100644 (file)
@@ -10,7 +10,7 @@
 use std::{collections::HashSet, ffi::OsString, path::PathBuf};
 
 use flycheck::FlycheckConfig;
-use ide::{AnalysisConfig, AssistConfig, CompletionConfig, HoverConfig, InlayHintsConfig};
+use ide::{AssistConfig, CompletionConfig, HoverConfig, InlayHintsConfig};
 use lsp_types::ClientCapabilities;
 use project_model::{CargoConfig, ProjectJson, ProjectJsonData, ProjectManifest};
 use serde::Deserialize;
@@ -49,6 +49,12 @@ pub struct Config {
     pub analysis: AnalysisConfig,
 }
 
+/// Configuration parameters for the analysis run.
+#[derive(Debug, Default, Clone)]
+pub struct AnalysisConfig {
+    pub disabled_diagnostics: HashSet<String>,
+}
+
 #[derive(Debug, Clone, Eq, PartialEq)]
 pub enum LinkedProject {
     ProjectManifest(ProjectManifest),