Skip to content

Commit 7acbbc3

Browse files
committed
Update to swift-standards 0.7.0 with rawValue API
- Update swift-standards dependency to 0.7.0 - Use Time.Year/Month/Day rawValue in DateTime.swift
1 parent 3987f11 commit 7acbbc3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let package = Package(
3535
],
3636
dependencies: [
3737
.package(url: "https://github.com/swift-standards/swift-rfc-1123.git", from: "0.3.1"),
38-
.package(url: "https://github.com/swift-standards/swift-standards.git", from: "0.4.0"),
38+
.package(url: "https://github.com/swift-standards/swift-standards.git", from: "0.7.0"),
3939
.package(url: "https://github.com/swift-standards/swift-incits-4-1986.git", from: "0.4.0"),
4040
],
4141
targets: [

Sources/RFC 5322/RFC_5322.DateTime.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ extension RFC_5322.DateTime {
444444
// Use unchecked initializer to bypass validation in hot path
445445
return RFC_5322.Date.Components(
446446
__unchecked: (),
447-
year: localTime.year.value,
448-
month: localTime.month.value,
449-
day: localTime.day.value,
447+
year: localTime.year.rawValue,
448+
month: localTime.month.rawValue,
449+
day: localTime.day.rawValue,
450450
hour: localTime.hour.value,
451451
minute: localTime.minute.value,
452452
second: localTime.second.value,

0 commit comments

Comments
 (0)