From ceb7f2f172d5e9a5c50ddd845f4e4af87924ad5a Mon Sep 17 00:00:00 2001 From: taitep Date: Fri, 2 Jan 2026 12:55:42 +0100 Subject: Apply some clippy-suggested fixes --- src/exceptions.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/exceptions.rs') diff --git a/src/exceptions.rs b/src/exceptions.rs index 0b92a97..8ea4480 100644 --- a/src/exceptions.rs +++ b/src/exceptions.rs @@ -98,14 +98,14 @@ impl MemoryException { } } -impl Into for MemoryException { - fn into(self) -> MemoryExceptionType { - self.type_ +impl From for MemoryExceptionType { + fn from(val: MemoryException) -> Self { + val.type_ } } -impl Into for Exception { - fn into(self) -> ExceptionType { - self.type_ +impl From for ExceptionType { + fn from(val: Exception) -> Self { + val.type_ } } -- cgit v1.2.3