@@ -580,7 +580,7 @@ macro_rules! box_to_opt_ref {
580
580
#[ cfg( feature = "with-json" ) ]
581
581
impl Value {
582
582
pub fn is_json ( & self ) -> bool {
583
- return matches ! ( self , Self :: Json ( _) ) ;
583
+ matches ! ( self , Self :: Json ( _) )
584
584
}
585
585
586
586
pub fn as_ref_json ( & self ) -> Option < & Json > {
@@ -594,7 +594,7 @@ impl Value {
594
594
#[ cfg( feature = "with-chrono" ) ]
595
595
impl Value {
596
596
pub fn is_chrono_date ( & self ) -> bool {
597
- return matches ! ( self , Self :: ChronoDate ( _) ) ;
597
+ matches ! ( self , Self :: ChronoDate ( _) )
598
598
}
599
599
600
600
pub fn as_ref_chrono_date ( & self ) -> Option < & NaiveDate > {
@@ -608,7 +608,7 @@ impl Value {
608
608
#[ cfg( feature = "with-time" ) ]
609
609
impl Value {
610
610
pub fn is_time_date ( & self ) -> bool {
611
- return matches ! ( self , Self :: TimeDate ( _) ) ;
611
+ matches ! ( self , Self :: TimeDate ( _) )
612
612
}
613
613
614
614
pub fn as_ref_time_date ( & self ) -> Option < & time:: Date > {
@@ -622,7 +622,7 @@ impl Value {
622
622
#[ cfg( feature = "with-chrono" ) ]
623
623
impl Value {
624
624
pub fn is_chrono_time ( & self ) -> bool {
625
- return matches ! ( self , Self :: ChronoTime ( _) ) ;
625
+ matches ! ( self , Self :: ChronoTime ( _) )
626
626
}
627
627
628
628
pub fn as_ref_chrono_time ( & self ) -> Option < & NaiveTime > {
@@ -636,7 +636,7 @@ impl Value {
636
636
#[ cfg( feature = "with-time" ) ]
637
637
impl Value {
638
638
pub fn is_time_time ( & self ) -> bool {
639
- return matches ! ( self , Self :: TimeTime ( _) ) ;
639
+ matches ! ( self , Self :: TimeTime ( _) )
640
640
}
641
641
642
642
pub fn as_ref_time_time ( & self ) -> Option < & time:: Time > {
@@ -650,7 +650,7 @@ impl Value {
650
650
#[ cfg( feature = "with-chrono" ) ]
651
651
impl Value {
652
652
pub fn is_chrono_date_time ( & self ) -> bool {
653
- return matches ! ( self , Self :: ChronoDateTime ( _) ) ;
653
+ matches ! ( self , Self :: ChronoDateTime ( _) )
654
654
}
655
655
656
656
pub fn as_ref_chrono_date_time ( & self ) -> Option < & NaiveDateTime > {
@@ -664,7 +664,7 @@ impl Value {
664
664
#[ cfg( feature = "with-time" ) ]
665
665
impl Value {
666
666
pub fn is_time_date_time ( & self ) -> bool {
667
- return matches ! ( self , Self :: TimeDateTime ( _) ) ;
667
+ matches ! ( self , Self :: TimeDateTime ( _) )
668
668
}
669
669
670
670
pub fn as_ref_time_date_time ( & self ) -> Option < & PrimitiveDateTime > {
@@ -678,7 +678,7 @@ impl Value {
678
678
#[ cfg( feature = "with-chrono" ) ]
679
679
impl Value {
680
680
pub fn is_chrono_date_time_utc ( & self ) -> bool {
681
- return matches ! ( self , Self :: ChronoDateTimeUtc ( _) ) ;
681
+ matches ! ( self , Self :: ChronoDateTimeUtc ( _) )
682
682
}
683
683
684
684
pub fn as_ref_chrono_date_time_utc ( & self ) -> Option < & DateTime < Utc > > {
@@ -692,7 +692,7 @@ impl Value {
692
692
#[ cfg( feature = "with-chrono" ) ]
693
693
impl Value {
694
694
pub fn is_chrono_date_time_local ( & self ) -> bool {
695
- return matches ! ( self , Self :: ChronoDateTimeLocal ( _) ) ;
695
+ matches ! ( self , Self :: ChronoDateTimeLocal ( _) )
696
696
}
697
697
698
698
pub fn as_ref_chrono_date_time_local ( & self ) -> Option < & DateTime < Local > > {
@@ -706,7 +706,7 @@ impl Value {
706
706
#[ cfg( feature = "with-chrono" ) ]
707
707
impl Value {
708
708
pub fn is_chrono_date_time_with_time_zone ( & self ) -> bool {
709
- return matches ! ( self , Self :: ChronoDateTimeWithTimeZone ( _) ) ;
709
+ matches ! ( self , Self :: ChronoDateTimeWithTimeZone ( _) )
710
710
}
711
711
712
712
pub fn as_ref_chrono_date_time_with_time_zone ( & self ) -> Option < & DateTime < FixedOffset > > {
@@ -720,7 +720,7 @@ impl Value {
720
720
#[ cfg( feature = "with-time" ) ]
721
721
impl Value {
722
722
pub fn is_time_date_time_with_time_zone ( & self ) -> bool {
723
- return matches ! ( self , Self :: TimeDateTimeWithTimeZone ( _) ) ;
723
+ matches ! ( self , Self :: TimeDateTimeWithTimeZone ( _) )
724
724
}
725
725
726
726
pub fn as_ref_time_date_time_with_time_zone ( & self ) -> Option < & OffsetDateTime > {
@@ -764,7 +764,7 @@ impl Value {
764
764
#[ cfg( feature = "with-rust_decimal" ) ]
765
765
impl Value {
766
766
pub fn is_decimal ( & self ) -> bool {
767
- return matches ! ( self , Self :: Decimal ( _) ) ;
767
+ matches ! ( self , Self :: Decimal ( _) )
768
768
}
769
769
pub fn as_ref_decimal ( & self ) -> Option < & Decimal > {
770
770
match self {
@@ -781,7 +781,7 @@ impl Value {
781
781
#[ cfg( feature = "with-bigdecimal" ) ]
782
782
impl Value {
783
783
pub fn is_big_decimal ( & self ) -> bool {
784
- return matches ! ( self , Self :: BigDecimal ( _) ) ;
784
+ matches ! ( self , Self :: BigDecimal ( _) )
785
785
}
786
786
pub fn as_ref_big_decimal ( & self ) -> Option < & BigDecimal > {
787
787
match self {
@@ -798,7 +798,7 @@ impl Value {
798
798
#[ cfg( feature = "with-uuid" ) ]
799
799
impl Value {
800
800
pub fn is_uuid ( & self ) -> bool {
801
- return matches ! ( self , Self :: Uuid ( _) ) ;
801
+ matches ! ( self , Self :: Uuid ( _) )
802
802
}
803
803
pub fn as_ref_uuid ( & self ) -> Option < & Uuid > {
804
804
match self {
@@ -811,7 +811,7 @@ impl Value {
811
811
#[ cfg( feature = "postgres-array" ) ]
812
812
impl Value {
813
813
pub fn is_array ( & self ) -> bool {
814
- return matches ! ( self , Self :: Array ( _) ) ;
814
+ matches ! ( self , Self :: Array ( _) )
815
815
}
816
816
817
817
pub fn as_ref_array ( & self ) -> Option < & Vec < Value > > {
0 commit comments