summaryrefslogtreecommitdiff
path: root/cli/lsp/documents.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp/documents.rs')
-rw-r--r--cli/lsp/documents.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs
index 92dfdf543..0e3cb2a7f 100644
--- a/cli/lsp/documents.rs
+++ b/cli/lsp/documents.rs
@@ -52,15 +52,13 @@ static JS_HEADERS: Lazy<HashMap<String, String>> = Lazy::new(|| {
"content-type".to_string(),
"application/javascript".to_string(),
)])
- .iter()
- .cloned()
+ .into_iter()
.collect()
});
static JSX_HEADERS: Lazy<HashMap<String, String>> = Lazy::new(|| {
([("content-type".to_string(), "text/jsx".to_string())])
- .iter()
- .cloned()
+ .into_iter()
.collect()
});
@@ -69,15 +67,13 @@ static TS_HEADERS: Lazy<HashMap<String, String>> = Lazy::new(|| {
"content-type".to_string(),
"application/typescript".to_string(),
)])
- .iter()
- .cloned()
+ .into_iter()
.collect()
});
static TSX_HEADERS: Lazy<HashMap<String, String>> = Lazy::new(|| {
([("content-type".to_string(), "text/tsx".to_string())])
- .iter()
- .cloned()
+ .into_iter()
.collect()
});