diff options
| author | taitep <taitep@taitep.se> | 2026-01-02 12:55:42 +0100 |
|---|---|---|
| committer | taitep <taitep@taitep.se> | 2026-01-02 12:55:42 +0100 |
| commit | ceb7f2f172d5e9a5c50ddd845f4e4af87924ad5a (patch) | |
| tree | 1a8a747f5ecf2b07d9e91da1cd8582709839e490 /src/exceptions.rs | |
| parent | 21fb6cbc8baab44c57c004e9f78904630044499d (diff) | |
Apply some clippy-suggested fixes
Diffstat (limited to 'src/exceptions.rs')
| -rw-r--r-- | src/exceptions.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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<MemoryExceptionType> for MemoryException { - fn into(self) -> MemoryExceptionType { - self.type_ +impl From<MemoryException> for MemoryExceptionType { + fn from(val: MemoryException) -> Self { + val.type_ } } -impl Into<ExceptionType> for Exception { - fn into(self) -> ExceptionType { - self.type_ +impl From<Exception> for ExceptionType { + fn from(val: Exception) -> Self { + val.type_ } } |
