@@ -539,7 +539,6 @@ pub trait FromPrimitive: Sized {
539539
540540macro_rules! impl_from_primitive {
541541 ( $T: ty, $to_ty: ident) => {
542- #[ allow( deprecated) ]
543542 impl FromPrimitive for $T {
544543 #[ inline]
545544 fn from_isize( n: isize ) -> Option <$T> {
@@ -620,7 +619,6 @@ impl_from_primitive!(f64, to_f64);
620619
621620macro_rules! impl_from_primitive_nonzero {
622621 ( $T: ty, $to_ty: ident) => {
623- #[ allow( deprecated) ]
624622 impl FromPrimitive for $T {
625623 #[ inline]
626624 fn from_isize( n: isize ) -> Option <$T> {
@@ -793,7 +791,6 @@ macro_rules! impl_num_cast {
793791 ( $T: ty, $conv: ident) => {
794792 impl NumCast for $T {
795793 #[ inline]
796- #[ allow( deprecated) ]
797794 fn from<N : ToPrimitive >( n: N ) -> Option <$T> {
798795 // `$conv` could be generated using `concat_idents!`, but that
799796 // macro seems to be broken at the moment
@@ -822,7 +819,6 @@ macro_rules! impl_num_cast_nonzero {
822819 ( $T: ty, $conv: ident) => {
823820 impl NumCast for $T {
824821 #[ inline]
825- #[ allow( deprecated) ]
826822 fn from<N : ToPrimitive >( n: N ) -> Option <$T> {
827823 // `$conv` could be generated using `concat_idents!`, but that
828824 // macro seems to be broken at the moment
0 commit comments