summaryrefslogtreecommitdiff
path: root/src/exceptions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/exceptions.rs')
-rw-r--r--src/exceptions.rs12
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_
}
}