diff options
Diffstat (limited to 'src/state')
| -rw-r--r-- | src/state/editor/cursorshape.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state/editor/cursorshape.rs b/src/state/editor/cursorshape.rs index b9b45bd..b2eddc5 100644 --- a/src/state/editor/cursorshape.rs +++ b/src/state/editor/cursorshape.rs @@ -37,9 +37,9 @@ impl<'lua> IntoLua<'lua> for CursorShape { } } -impl Into<SetCursorStyle> for CursorShape { - fn into(self) -> SetCursorStyle { - match self { +impl From<CursorShape> for SetCursorStyle { + fn from(shape: CursorShape) -> SetCursorStyle { + match shape { CursorShape::Block => SetCursorStyle::SteadyBlock, CursorShape::Bar => SetCursorStyle::SteadyBar, CursorShape::Underscore => SetCursorStyle::SteadyUnderScore, |