From fae5e13bd51a1810e9f98bd88a1ed906e94cff20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bennet=20Ble=C3=9Fmann?= Date: Thu, 31 Jul 2025 21:38:26 +0200 Subject: [PATCH] impl From rather than Into --- src/machine/machine_indices.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/machine/machine_indices.rs b/src/machine/machine_indices.rs index 07d77f6a..3c918883 100644 --- a/src/machine/machine_indices.rs +++ b/src/machine/machine_indices.rs @@ -159,17 +159,17 @@ impl From for CodeIndex { } } -impl Into for CodeIndex { +impl From for CodeIndexOffset { #[inline(always)] - fn into(self) -> CodeIndexOffset { - self.0 + fn from(value: CodeIndex) -> CodeIndexOffset { + value.0 } } -impl Into for &'_ CodeIndex { +impl From<&'_ CodeIndex> for CodeIndexOffset { #[inline(always)] - fn into(self) -> CodeIndexOffset { - self.0 + fn from(value: &'_ CodeIndex) -> CodeIndexOffset { + value.0 } } -- 2.54.0