Commit 7fa56c3
refactor: replace hand-rolled calendar math with humantime
Replace the 30-line Howard Hinnant civil date algorithm in Rfc3339
FormatTime with humantime::format_rfc3339_micros — a single function
call that produces the same output. Removes clippy allow attributes
that were only needed for the manual implementation.
Amp-Thread-ID: https://ampcode.com/threads/T-019cbd86-2ea8-718e-9748-b2a9d1db855b
Co-authored-by: Amp <amp@ampcode.com>1 parent 5fab722 commit 7fa56c3
2 files changed
Lines changed: 3 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 106 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 107 | | |
141 | 108 | | |
142 | | - | |
| 109 | + | |
| 110 | + | |
143 | 111 | | |
144 | 112 | | |
145 | 113 | | |
| |||
0 commit comments