We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
concat_idents!
1 parent 2ce0fb6 commit 1896570Copy full SHA for 1896570
src/cast.rs
@@ -792,8 +792,6 @@ macro_rules! impl_num_cast {
792
impl NumCast for $T {
793
#[inline]
794
fn from<N: ToPrimitive>(n: N) -> Option<$T> {
795
- // `$conv` could be generated using `concat_idents!`, but that
796
- // macro seems to be broken at the moment
797
n.$conv()
798
}
799
@@ -820,8 +818,6 @@ macro_rules! impl_num_cast_nonzero {
820
818
821
819
822
823
824
825
n.$conv().and_then(Self::new)
826
827
0 commit comments