Skip to content

Commit 6f01e99

Browse files
committed
Remove unowned from computed properties.
1 parent 825e50d commit 6f01e99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftProtobufPluginLibrary/Descriptor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public final class EnumValueDescriptor {
534534
public let number: Int32
535535

536536
/// The .proto file in which this message type was defined.
537-
public unowned var file: FileDescriptor! { return enumType.file }
537+
public var file: FileDescriptor! { return enumType.file }
538538
/// The type of this value.
539539
public private(set) unowned var enumType: EnumDescriptor!
540540

@@ -579,7 +579,7 @@ public final class OneofDescriptor {
579579
}
580580

581581
/// The .proto file in which this oneof type was defined.
582-
public unowned var file: FileDescriptor! { return containingType.file }
582+
public var file: FileDescriptor! { return containingType.file }
583583
/// If this Descriptor of the message that defines this oneof.
584584
public private(set) unowned var containingType: Descriptor!
585585

@@ -884,7 +884,7 @@ public final class MethodDescriptor {
884884
public let index: Int
885885

886886
/// The .proto file in which this service was defined
887-
public unowned var file: FileDescriptor! { return service.file }
887+
public var file: FileDescriptor! { return service.file }
888888
/// The service tha defines this method.
889889
public private(set) unowned var service: ServiceDescriptor!
890890

0 commit comments

Comments
 (0)