Skip to content

Commit 1980bd5

Browse files
committed
helix-lsp-types: Prefer crate::Url to url::Url
This is a cosmetic change to replace all direct `use`s of the `url::Url` type in the `helix-lsp-types` crate with `use crate::Url;`. The types are the same type currently: this refactor will make a future replacement of the Url type less noisy. Connects #11889
1 parent cc3b77b commit 1980bd5

File tree

6 files changed

+6
-13
lines changed

6 files changed

+6
-13
lines changed

helix-lsp-types/src/call_hierarchy.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
use serde::{Deserialize, Serialize};
22
use serde_json::Value;
3-
use url::Url;
43

54
use crate::{
65
DynamicRegistrationClientCapabilities, PartialResultParams, Range, SymbolKind, SymbolTag,
7-
TextDocumentPositionParams, WorkDoneProgressOptions, WorkDoneProgressParams,
6+
TextDocumentPositionParams, Url, WorkDoneProgressOptions, WorkDoneProgressParams,
87
};
98

109
pub type CallHierarchyClientCapabilities = DynamicRegistrationClientCapabilities;

helix-lsp-types/src/document_diagnostic.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
use std::collections::HashMap;
22

33
use serde::{Deserialize, Serialize};
4-
use url::Url;
54

65
use crate::{
76
Diagnostic, PartialResultParams, StaticRegistrationOptions, TextDocumentIdentifier,
8-
TextDocumentRegistrationOptions, WorkDoneProgressOptions, WorkDoneProgressParams,
7+
TextDocumentRegistrationOptions, Url, WorkDoneProgressOptions, WorkDoneProgressParams,
98
};
109

1110
/// Client capabilities specific to diagnostic pull requests.

helix-lsp-types/src/document_link.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
use crate::{
2-
PartialResultParams, Range, TextDocumentIdentifier, WorkDoneProgressOptions,
2+
PartialResultParams, Range, TextDocumentIdentifier, Url, WorkDoneProgressOptions,
33
WorkDoneProgressParams,
44
};
55
use serde::{Deserialize, Serialize};
66
use serde_json::Value;
7-
use url::Url;
87

98
#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)]
109
#[serde(rename_all = "camelCase")]

helix-lsp-types/src/window.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ use serde::{Deserialize, Serialize};
44

55
use serde_json::Value;
66

7-
use url::Url;
8-
9-
use crate::Range;
7+
use crate::{Range, Url};
108

119
#[derive(Eq, PartialEq, Clone, Copy, Deserialize, Serialize)]
1210
#[serde(transparent)]

helix-lsp-types/src/workspace_diagnostic.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use serde::{Deserialize, Serialize};
2-
use url::Url;
32

43
use crate::{
5-
FullDocumentDiagnosticReport, PartialResultParams, UnchangedDocumentDiagnosticReport,
4+
FullDocumentDiagnosticReport, PartialResultParams, UnchangedDocumentDiagnosticReport, Url,
65
WorkDoneProgressParams,
76
};
87

helix-lsp-types/src/workspace_folders.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use serde::{Deserialize, Serialize};
2-
use url::Url;
32

4-
use crate::OneOf;
3+
use crate::{OneOf, Url};
54

65
#[derive(Debug, Eq, PartialEq, Clone, Default, Deserialize, Serialize)]
76
#[serde(rename_all = "camelCase")]

0 commit comments

Comments
 (0)