File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3
3
.version = "0.1.0" ,
4
4
.dependencies = .{
5
5
.datetime = .{
6
- .url = "https://github.com/frmdstryr /zig-datetime/archive/fa702ed9979a98532b2973c123a1734f795629d0 .tar.gz" ,
7
- .hash = "1220209352d22a38b0ec94f5bc1ab95dce7d77be65ed3f1d31b9cc58292e6279406b" ,
6
+ .url = "https://github.com/Hanaasagi /zig-datetime/archive/d61796365c802f58bcec268924e6074628b43bf7 .tar.gz" ,
7
+ .hash = "12206379a2526c6a70a6501b33a06ad2d63794f55b4a1beaf2dec3f4d0a24b815341"
8
8
}
9
9
},
10
10
.paths = .{"" },
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ pub fn NextYear(dt: datetime.Datetime) !datetime.Datetime {
168
168
}
169
169
170
170
pub fn PrevDay (dt : datetime.Datetime ) ! datetime.Datetime {
171
- var tdt = dt .shiftDays (-1 );
171
+ const tdt = dt .shiftDays (-1 );
172
172
var ndt = dt .shiftDays (-1 );
173
173
while (tdt .date .month == ndt .date .month ) {
174
174
ndt = ndt .shiftDays (-1 );
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ pub const CronField = struct {
215
215
return set ;
216
216
}
217
217
218
- var right = BitSet .initEmpty ();
218
+ const right = BitSet .initEmpty ();
219
219
220
220
var first = end + step ;
221
221
var i = end ;
@@ -252,8 +252,8 @@ pub const CronField = struct {
252
252
253
253
// e.g. minute => 0 ~ 60
254
254
const range = tag .getRange ();
255
- var range_start = range [0 ];
256
- var range_end = range [1 ];
255
+ const range_start = range [0 ];
256
+ const range_end = range [1 ];
257
257
258
258
var end_limit = range_end ;
259
259
actual_end .* = range_end ;
You can’t perform that action at this time.
0 commit comments