Skip to content

Commit b442b13

Browse files
committed
Move import up top
1 parent 3ea926b commit b442b13

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

crates/ark/src/lsp/handlers.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ pub(crate) async fn handle_initialized(
103103
// changed by extensions or by the user without changing the actual
104104
// underlying setting. Unfortunately we don't receive updates in that case.
105105

106-
use crate::lsp::config::SETTINGS;
107-
108-
for setting in SETTINGS {
106+
for setting in crate::lsp::config::SETTINGS {
109107
regs.push(Registration {
110108
id: uuid::Uuid::new_v4().to_string(),
111109
method: String::from("workspace/didChangeConfiguration"),

crates/ark/src/lsp/state_handlers.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ use url::Url;
3939
use crate::lsp;
4040
use crate::lsp::capabilities::Capabilities;
4141
use crate::lsp::config::indent_style_from_lsp;
42+
use crate::lsp::config::SETTINGS;
4243
use crate::lsp::documents::Document;
4344
use crate::lsp::encoding::get_position_encoding_kind;
4445
use crate::lsp::indexer;
@@ -275,8 +276,6 @@ pub(crate) fn did_change_formatting_options(
275276
// `insert_final_newline`
276277
}
277278

278-
use crate::lsp::config::SETTINGS;
279-
280279
async fn update_config(
281280
_uris: Vec<Url>,
282281
client: &tower_lsp::Client,

0 commit comments

Comments
 (0)