File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ impl Accepts {
597
597
}
598
598
*/
599
599
600
- pub ( super ) fn as_str ( & self ) -> Option < & ' static str > {
600
+ pub ( super ) const fn as_str ( & self ) -> Option < & ' static str > {
601
601
match (
602
602
self . is_gzip ( ) ,
603
603
self . is_brotli ( ) ,
@@ -623,7 +623,7 @@ impl Accepts {
623
623
}
624
624
}
625
625
626
- fn is_gzip ( & self ) -> bool {
626
+ const fn is_gzip ( & self ) -> bool {
627
627
#[ cfg( feature = "gzip" ) ]
628
628
{
629
629
self . gzip
@@ -635,7 +635,7 @@ impl Accepts {
635
635
}
636
636
}
637
637
638
- fn is_brotli ( & self ) -> bool {
638
+ const fn is_brotli ( & self ) -> bool {
639
639
#[ cfg( feature = "brotli" ) ]
640
640
{
641
641
self . brotli
@@ -647,7 +647,7 @@ impl Accepts {
647
647
}
648
648
}
649
649
650
- fn is_zstd ( & self ) -> bool {
650
+ const fn is_zstd ( & self ) -> bool {
651
651
#[ cfg( feature = "zstd" ) ]
652
652
{
653
653
self . zstd
@@ -659,7 +659,7 @@ impl Accepts {
659
659
}
660
660
}
661
661
662
- fn is_deflate ( & self ) -> bool {
662
+ const fn is_deflate ( & self ) -> bool {
663
663
#[ cfg( feature = "deflate" ) ]
664
664
{
665
665
self . deflate
You can’t perform that action at this time.
0 commit comments