File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ macro_rules! seek {
437
437
(
438
438
$vis: vis enum $name: ident {
439
439
$(
440
- $variant: ident $fields: tt
440
+ $variant: ident $fields: tt,
441
441
) *
442
442
}
443
443
) => {
@@ -610,9 +610,9 @@ mod tests {
610
610
use chrono:: naive:: serde:: ts_microseconds;
611
611
seek ! {
612
612
pub ( super ) enum Seek {
613
- Id { id: i32 }
614
- New { #[ serde( with="ts_microseconds" ) ] dt: chrono:: NaiveDateTime , id: i32 }
615
- RecentDownloads { downloads: Option <i64 >, id: i32 }
613
+ Id { id: i32 } ,
614
+ New { #[ serde( with="ts_microseconds" ) ] dt: chrono:: NaiveDateTime , id: i32 } ,
615
+ RecentDownloads { downloads: Option <i64 >, id: i32 } ,
616
616
}
617
617
}
618
618
}
Original file line number Diff line number Diff line change @@ -560,13 +560,13 @@ mod seek {
560
560
561
561
seek ! {
562
562
pub enum Seek {
563
- Name { id: i32 }
564
- New { #[ serde( with="ts_microseconds" ) ] created_at: chrono:: NaiveDateTime , id: i32 }
565
- RecentUpdates { #[ serde( with="ts_microseconds" ) ] updated_at: chrono:: NaiveDateTime , id: i32 }
566
- RecentDownloads { recent_downloads: Option <i64 >, id: i32 }
567
- Downloads { downloads: i64 , id: i32 }
568
- Query { exact_match: bool , id: i32 }
569
- Relevance { exact_match: bool , rank: f32 , id: i32 }
563
+ Name { id: i32 } ,
564
+ New { #[ serde( with="ts_microseconds" ) ] created_at: chrono:: NaiveDateTime , id: i32 } ,
565
+ RecentUpdates { #[ serde( with="ts_microseconds" ) ] updated_at: chrono:: NaiveDateTime , id: i32 } ,
566
+ RecentDownloads { recent_downloads: Option <i64 >, id: i32 } ,
567
+ Downloads { downloads: i64 , id: i32 } ,
568
+ Query { exact_match: bool , id: i32 } ,
569
+ Relevance { exact_match: bool , rank: f32 , id: i32 } ,
570
570
}
571
571
}
572
572
Original file line number Diff line number Diff line change @@ -236,8 +236,8 @@ mod seek {
236
236
// doesn't include field names.
237
237
seek ! {
238
238
pub enum Seek {
239
- Semver { id: i32 }
240
- Date { #[ serde( with="ts_microseconds" ) ] created_at: chrono:: NaiveDateTime , id: i32 }
239
+ Semver { id: i32 } ,
240
+ Date { #[ serde( with="ts_microseconds" ) ] created_at: chrono:: NaiveDateTime , id: i32 } ,
241
241
}
242
242
}
243
243
You can’t perform that action at this time.
0 commit comments