From b747ca8af52129876b577a4f20f7105a05c6b002 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 10 Aug 2024 15:41:31 +0200 Subject: add global fileloader registry --- src/state/editor/cursorshape.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/state') 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 for CursorShape { - fn into(self) -> SetCursorStyle { - match self { +impl From for SetCursorStyle { + fn from(shape: CursorShape) -> SetCursorStyle { + match shape { CursorShape::Block => SetCursorStyle::SteadyBlock, CursorShape::Bar => SetCursorStyle::SteadyBar, CursorShape::Underscore => SetCursorStyle::SteadyUnderScore, -- cgit v1.2.3-70-g09d2