Skip to content

Commit 9137ad2

Browse files
committed
from
1 parent 14eba3d commit 9137ad2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/random.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ pub enum NumpyBitGenerator {
249249
SFC64,
250250
}
251251

252-
impl Into<&'static str> for NumpyBitGenerator {
253-
fn into(self) -> &'static str {
254-
match self {
252+
impl From<NumpyBitGenerator> for &'static str {
253+
fn from(value: NumpyBitGenerator) -> &'static str {
254+
match value {
255255
NumpyBitGenerator::MT19937 => "MT19937",
256256
NumpyBitGenerator::PCG64 => "PCG64",
257257
NumpyBitGenerator::PCG64DXSM => "PCG64dxsm",

0 commit comments

Comments
 (0)