Skip to content

Commit 7b14d0b

Browse files
committed
Remove ExpressibleByStringLiteral conformance for URL.Template.VariableName
1 parent 888032a commit 7b14d0b

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

Sources/FoundationEssentials/URL/URLTemplate_VariableName.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,3 @@ extension URL.Template.VariableName: CustomStringConvertible {
3939
String(self)
4040
}
4141
}
42-
43-
// MARK: -
44-
45-
extension URL.Template.VariableName: ExpressibleByStringLiteral {
46-
public init(stringLiteral value: String) {
47-
self.init(value)
48-
}
49-
}

Tests/FoundationEssentialsTests/URITemplatingTests/URLTemplate_TemplateTests.swift

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,26 @@ internal import _FoundationCollections
3131

3232
private var variables: [URL.Template.VariableName: URL.Template.Value] {
3333
return [
34-
"count": ["one", "two", "three"],
35-
"dom": ["example", "com"],
36-
"dub": "me/too",
37-
"hello": "Hello World!",
38-
"half": "50%",
39-
"var": "value",
40-
"who": "fred",
41-
"base": "http://example.com/home/",
42-
"path": "/foo/bar",
43-
"list": ["red", "green", "blue"],
44-
"keys": [
34+
.init("count"): ["one", "two", "three"],
35+
.init("dom"): ["example", "com"],
36+
.init("dub"): "me/too",
37+
.init("hello"): "Hello World!",
38+
.init("half"): "50%",
39+
.init("var"): "value",
40+
.init("who"): "fred",
41+
.init("base"): "http://example.com/home/",
42+
.init("path"): "/foo/bar",
43+
.init("list"): ["red", "green", "blue"],
44+
.init("keys"): [
4545
"semi": ";",
4646
"dot": ".",
4747
"comma": ",",
4848
],
49-
"v": "6",
50-
"x": "1024",
51-
"y": "768",
52-
"empty": "",
53-
"empty_keys": [:],
49+
.init("v"): "6",
50+
.init("x"): "1024",
51+
.init("y"): "768",
52+
.init("empty"): "",
53+
.init("empty_keys"): [:],
5454
]
5555
}
5656

0 commit comments

Comments
 (0)