@@ -142,7 +142,6 @@ impl Comic {
142142 )
143143 . fetch_optional ( executor)
144144 . await
145- . map ( |i| i. map ( |i| i as u16 ) )
146145 }
147146
148147 pub async fn next_id < ' e , ' c : ' e , E > (
@@ -171,7 +170,6 @@ impl Comic {
171170 )
172171 . fetch_optional ( executor)
173172 . await
174- . map ( |i| i. map ( |i| i as u16 ) )
175173 }
176174
177175 pub async fn publish_date_by_id < ' e , ' c : ' e , E > (
@@ -398,11 +396,7 @@ impl Comic {
398396 )
399397 . fetch_optional ( executor)
400398 . await
401- . map ( |ofl| {
402- ofl. map_or ( ( None , None ) , |fl| {
403- ( fl. first . map ( |i| i as u16 ) , fl. last . map ( |i| i as u16 ) )
404- } )
405- } )
399+ . map ( |ofl| ofl. map_or ( ( None , None ) , |fl| ( fl. first , fl. last ) ) )
406400 }
407401
408402 pub async fn previous_missing_tagline_by_id < ' e , ' c : ' e , E > (
@@ -427,7 +421,6 @@ impl Comic {
427421 )
428422 . fetch_optional ( executor)
429423 . await
430- . map ( |i| i. map ( |i| i as u16 ) )
431424 }
432425
433426 pub async fn next_missing_tagline_by_id < ' e , ' c : ' e , E > (
@@ -452,7 +445,6 @@ impl Comic {
452445 )
453446 . fetch_optional ( executor)
454447 . await
455- . map ( |i| i. map ( |i| i as u16 ) )
456448 }
457449
458450 // ---
@@ -476,11 +468,7 @@ impl Comic {
476468 )
477469 . fetch_optional ( executor)
478470 . await
479- . map ( |ofl| {
480- ofl. map_or ( ( None , None ) , |fl| {
481- ( fl. first . map ( |i| i as u16 ) , fl. last . map ( |i| i as u16 ) )
482- } )
483- } )
471+ . map ( |ofl| ofl. map_or ( ( None , None ) , |fl| ( fl. first , fl. last ) ) )
484472 }
485473
486474 pub async fn previous_missing_title_by_id < ' e , ' c : ' e , E > (
@@ -504,7 +492,6 @@ impl Comic {
504492 )
505493 . fetch_optional ( executor)
506494 . await
507- . map ( |i| i. map ( |i| i as u16 ) )
508495 }
509496
510497 pub async fn next_missing_title_by_id < ' e , ' c : ' e , E > (
@@ -528,7 +515,6 @@ impl Comic {
528515 )
529516 . fetch_optional ( executor)
530517 . await
531- . map ( |i| i. map ( |i| i as u16 ) )
532518 }
533519
534520 // ---
@@ -567,7 +553,6 @@ impl Comic {
567553 )
568554 . fetch_optional ( executor)
569555 . await
570- . map ( |i| i. map ( |i| i as u16 ) )
571556 }
572557
573558 pub async fn previous_missing_items_by_id_and_type < ' e , ' c : ' e , E > (
@@ -607,7 +592,6 @@ impl Comic {
607592 )
608593 . fetch_optional ( executor)
609594 . await
610- . map ( |i| i. map ( |i| i as u16 ) )
611595 }
612596
613597 pub async fn next_missing_items_by_id_and_type < ' e , ' c : ' e , E > (
@@ -647,7 +631,6 @@ impl Comic {
647631 )
648632 . fetch_optional ( executor)
649633 . await
650- . map ( |i| i. map ( |i| i as u16 ) )
651634 }
652635
653636 pub async fn last_missing_items_by_type < ' e , ' c : ' e , E > (
@@ -684,7 +667,6 @@ impl Comic {
684667 )
685668 . fetch_optional ( executor)
686669 . await
687- . map ( |i| i. map ( |i| i as u16 ) )
688670 }
689671
690672 pub async fn tagline_by_id < ' e , ' c : ' e , E > ( executor : E , id : u16 ) -> sqlx:: Result < Option < String > >
0 commit comments