@@ -282,7 +282,6 @@ where
282282 type Key = <T :: Object as Object >:: Key ;
283283 type Target = <T :: Object as Object >:: Element ;
284284 #[ inline]
285- #[ must_use]
286285 fn get < Q > ( & self , k : & Q ) -> Option < & Self :: Target >
287286 where
288287 Self :: Key : Borrow < Q > ,
@@ -292,7 +291,6 @@ where
292291 }
293292
294293 #[ inline]
295- #[ must_use]
296294 fn contains_key < Q > ( & self , k : & Q ) -> bool
297295 where
298296 Self :: Key : Borrow < Q > ,
@@ -326,7 +324,6 @@ where
326324{
327325 type Target = <<T as ValueAsArray >:: Array as Indexed < I > >:: Element ;
328326 #[ inline]
329- #[ must_use]
330327 fn get_idx ( & self , i : I ) -> Option < & Self :: Target > {
331328 self . as_array ( ) . and_then ( |a| a. get ( i) )
332329 }
@@ -356,7 +353,6 @@ where
356353{
357354 type Key = T :: Key ;
358355 #[ inline]
359- #[ must_use]
360356 fn get_bool < Q > ( & self , k : & Q ) -> Option < bool >
361357 where
362358 Self :: Key : Borrow < Q > ,
@@ -366,7 +362,6 @@ where
366362 }
367363
368364 #[ inline]
369- #[ must_use]
370365 fn get_i128 < Q > ( & self , k : & Q ) -> Option < i128 >
371366 where
372367 Self :: Key : Borrow < Q > ,
@@ -376,7 +371,6 @@ where
376371 }
377372
378373 #[ inline]
379- #[ must_use]
380374 fn get_i64 < Q > ( & self , k : & Q ) -> Option < i64 >
381375 where
382376 Self :: Key : Borrow < Q > ,
@@ -386,7 +380,6 @@ where
386380 }
387381
388382 #[ inline]
389- #[ must_use]
390383 fn get_i32 < Q > ( & self , k : & Q ) -> Option < i32 >
391384 where
392385 Self :: Key : Borrow < Q > ,
@@ -396,7 +389,6 @@ where
396389 }
397390
398391 #[ inline]
399- #[ must_use]
400392 fn get_i16 < Q > ( & self , k : & Q ) -> Option < i16 >
401393 where
402394 Self :: Key : Borrow < Q > ,
@@ -406,7 +398,6 @@ where
406398 }
407399
408400 #[ inline]
409- #[ must_use]
410401 fn get_i8 < Q > ( & self , k : & Q ) -> Option < i8 >
411402 where
412403 Self :: Key : Borrow < Q > ,
@@ -416,7 +407,6 @@ where
416407 }
417408
418409 #[ inline]
419- #[ must_use]
420410 fn get_u128 < Q > ( & self , k : & Q ) -> Option < u128 >
421411 where
422412 Self :: Key : Borrow < Q > ,
@@ -426,7 +416,6 @@ where
426416 }
427417
428418 #[ inline]
429- #[ must_use]
430419 fn get_u64 < Q > ( & self , k : & Q ) -> Option < u64 >
431420 where
432421 Self :: Key : Borrow < Q > ,
@@ -436,7 +425,6 @@ where
436425 }
437426
438427 #[ inline]
439- #[ must_use]
440428 fn get_usize < Q > ( & self , k : & Q ) -> Option < usize >
441429 where
442430 Self :: Key : Borrow < Q > ,
@@ -446,7 +434,6 @@ where
446434 }
447435
448436 #[ inline]
449- #[ must_use]
450437 fn get_u32 < Q > ( & self , k : & Q ) -> Option < u32 >
451438 where
452439 Self :: Key : Borrow < Q > ,
@@ -456,7 +443,6 @@ where
456443 }
457444
458445 #[ inline]
459- #[ must_use]
460446 fn get_u16 < Q > ( & self , k : & Q ) -> Option < u16 >
461447 where
462448 Self :: Key : Borrow < Q > ,
@@ -466,7 +452,6 @@ where
466452 }
467453
468454 #[ inline]
469- #[ must_use]
470455 fn get_u8 < Q > ( & self , k : & Q ) -> Option < u8 >
471456 where
472457 Self :: Key : Borrow < Q > ,
@@ -476,7 +461,6 @@ where
476461 }
477462
478463 #[ inline]
479- #[ must_use]
480464 fn get_f64 < Q > ( & self , k : & Q ) -> Option < f64 >
481465 where
482466 Self :: Key : Borrow < Q > ,
@@ -486,7 +470,6 @@ where
486470 }
487471
488472 #[ inline]
489- #[ must_use]
490473 fn get_f32 < Q > ( & self , k : & Q ) -> Option < f32 >
491474 where
492475 Self :: Key : Borrow < Q > ,
@@ -496,7 +479,6 @@ where
496479 }
497480
498481 #[ inline]
499- #[ must_use]
500482 fn get_str < Q > ( & self , k : & Q ) -> Option < & str >
501483 where
502484 Self :: Key : Borrow < Q > ,
@@ -516,7 +498,6 @@ where
516498 type Array = <T :: Target as ValueAsArray >:: Array ;
517499
518500 #[ inline]
519- #[ must_use]
520501 fn get_array < Q > ( & self , k : & Q ) -> Option < & Self :: Array >
521502 where
522503 Self :: Key : Borrow < Q > ,
@@ -535,7 +516,6 @@ where
535516 type Object = <T :: Target as ValueAsObject >:: Object ;
536517
537518 #[ inline]
538- #[ must_use]
539519 fn get_object < Q > ( & self , k : & Q ) -> Option < & Self :: Object >
540520 where
541521 Self :: Key : Borrow < Q > ,
@@ -747,127 +727,106 @@ where
747727 T : ValueAsScalar ,
748728{
749729 #[ inline]
750- #[ must_use]
751730 fn is_null ( & self ) -> bool {
752731 self . as_null ( ) . is_some ( )
753732 }
754733
755734 #[ inline]
756- #[ must_use]
757735 fn is_float ( & self ) -> bool {
758736 self . is_f64 ( )
759737 }
760738
761739 #[ inline]
762- #[ must_use]
763740 fn is_integer ( & self ) -> bool {
764741 self . is_i128 ( ) || self . is_u128 ( )
765742 }
766743
767744 #[ inline]
768- #[ must_use]
769745 fn is_number ( & self ) -> bool {
770746 self . is_float ( ) || self . is_integer ( )
771747 }
772748
773749 #[ inline]
774- #[ must_use]
775750 fn is_bool ( & self ) -> bool {
776751 self . as_bool ( ) . is_some ( )
777752 }
778753
779754 #[ inline]
780- #[ must_use]
781755 fn is_i128 ( & self ) -> bool {
782756 self . as_i128 ( ) . is_some ( )
783757 }
784758
785759 #[ inline]
786- #[ must_use]
787760 fn is_i64 ( & self ) -> bool {
788761 self . as_i64 ( ) . is_some ( )
789762 }
790763
791764 #[ inline]
792- #[ must_use]
793765 fn is_i32 ( & self ) -> bool {
794766 self . as_i32 ( ) . is_some ( )
795767 }
796768
797769 #[ inline]
798- #[ must_use]
799770 fn is_i16 ( & self ) -> bool {
800771 self . as_i16 ( ) . is_some ( )
801772 }
802773
803774 #[ inline]
804- #[ must_use]
805775 fn is_i8 ( & self ) -> bool {
806776 self . as_i8 ( ) . is_some ( )
807777 }
808778
809779 #[ inline]
810- #[ must_use]
811780 fn is_u128 ( & self ) -> bool {
812781 self . as_u128 ( ) . is_some ( )
813782 }
814783
815784 #[ inline]
816- #[ must_use]
817785 fn is_u64 ( & self ) -> bool {
818786 self . as_u64 ( ) . is_some ( )
819787 }
820788
821789 #[ inline]
822- #[ must_use]
823790 fn is_usize ( & self ) -> bool {
824791 self . as_usize ( ) . is_some ( )
825792 }
826793
827794 #[ inline]
828- #[ must_use]
829795 fn is_u32 ( & self ) -> bool {
830796 self . as_u32 ( ) . is_some ( )
831797 }
832798
833799 #[ inline]
834- #[ must_use]
835800 fn is_u16 ( & self ) -> bool {
836801 self . as_u16 ( ) . is_some ( )
837802 }
838803
839804 #[ inline]
840- #[ must_use]
841805 fn is_u8 ( & self ) -> bool {
842806 self . as_u8 ( ) . is_some ( )
843807 }
844808
845809 #[ inline]
846- #[ must_use]
847810 fn is_f64 ( & self ) -> bool {
848811 self . as_f64 ( ) . is_some ( )
849812 }
850813
851814 #[ inline]
852- #[ must_use]
853815 fn is_f64_castable ( & self ) -> bool {
854816 self . cast_f64 ( ) . is_some ( )
855817 }
856818
857819 #[ inline]
858- #[ must_use]
859820 fn is_f32 ( & self ) -> bool {
860821 self . as_f32 ( ) . is_some ( )
861822 }
862823
863824 #[ inline]
864- #[ must_use]
865825 fn is_str ( & self ) -> bool {
866826 self . as_str ( ) . is_some ( )
867827 }
868828
869829 #[ inline]
870- #[ must_use]
871830 fn is_char ( & self ) -> bool {
872831 self . as_char ( ) . is_some ( )
873832 }
@@ -878,7 +837,6 @@ where
878837 T : ValueAsArray ,
879838{
880839 #[ inline]
881- #[ must_use]
882840 fn is_array ( & self ) -> bool {
883841 self . as_array ( ) . is_some ( )
884842 }
@@ -888,7 +846,6 @@ where
888846 T : ValueAsObject ,
889847{
890848 #[ inline]
891- #[ must_use]
892849 fn is_object ( & self ) -> bool {
893850 self . as_object ( ) . is_some ( )
894851 }
0 commit comments