diff --git a/korangar/src/interface/cursor/mod.rs b/korangar/src/interface/cursor/mod.rs index ced9238b..df4d418b 100644 --- a/korangar/src/interface/cursor/mod.rs +++ b/korangar/src/interface/cursor/mod.rs @@ -29,9 +29,9 @@ pub enum MouseCursorState { Unsure3, } -impl Into for MouseCursorState { - fn into(self) -> usize { - self as usize +impl From for usize { + fn from(value: MouseCursorState) -> Self { + value as usize } } diff --git a/korangar/src/loaders/action/mod.rs b/korangar/src/loaders/action/mod.rs index 70bf7eeb..1bb14cb4 100644 --- a/korangar/src/loaders/action/mod.rs +++ b/korangar/src/loaders/action/mod.rs @@ -33,9 +33,9 @@ pub enum ActionType { Dead = 8, } -impl Into for ActionType { - fn into(self) -> usize { - self as usize +impl From for usize { + fn from(value: ActionType) -> Self { + value as usize } }