@@ -539,7 +539,6 @@ pub trait FromPrimitive: Sized {
539
539
540
540
macro_rules! impl_from_primitive {
541
541
( $T: ty, $to_ty: ident) => {
542
- #[ allow( deprecated) ]
543
542
impl FromPrimitive for $T {
544
543
#[ inline]
545
544
fn from_isize( n: isize ) -> Option <$T> {
@@ -620,7 +619,6 @@ impl_from_primitive!(f64, to_f64);
620
619
621
620
macro_rules! impl_from_primitive_nonzero {
622
621
( $T: ty, $to_ty: ident) => {
623
- #[ allow( deprecated) ]
624
622
impl FromPrimitive for $T {
625
623
#[ inline]
626
624
fn from_isize( n: isize ) -> Option <$T> {
@@ -793,7 +791,6 @@ macro_rules! impl_num_cast {
793
791
( $T: ty, $conv: ident) => {
794
792
impl NumCast for $T {
795
793
#[ inline]
796
- #[ allow( deprecated) ]
797
794
fn from<N : ToPrimitive >( n: N ) -> Option <$T> {
798
795
// `$conv` could be generated using `concat_idents!`, but that
799
796
// macro seems to be broken at the moment
@@ -822,7 +819,6 @@ macro_rules! impl_num_cast_nonzero {
822
819
( $T: ty, $conv: ident) => {
823
820
impl NumCast for $T {
824
821
#[ inline]
825
- #[ allow( deprecated) ]
826
822
fn from<N : ToPrimitive >( n: N ) -> Option <$T> {
827
823
// `$conv` could be generated using `concat_idents!`, but that
828
824
// macro seems to be broken at the moment
0 commit comments