Skip to content

Commit e77d6e5

Browse files
authored
Like the plugin, use .rawValue (#1779)
This ends up relying on reflection, so just use `.rawValue` to get the String out instead. The plugin already did it this way.
1 parent 60153e3 commit e77d6e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/protoc-gen-swift/GeneratorOptions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class GeneratorOptions {
5555
var snippet: String {
5656
switch self {
5757
case let .accessLevel(visibility):
58-
return "\(visibility) import"
58+
return "\(visibility.rawValue) import"
5959
case .plain:
6060
return "import"
6161
case .implementationOnly:

0 commit comments

Comments
 (0)