diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-10 15:41:31 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-10 15:41:31 +0200 |
| commit | b747ca8af52129876b577a4f20f7105a05c6b002 (patch) | |
| tree | d976a5c3cd135dfecb1014246936bb7a8b525c4b /src/state | |
| parent | 4763d8ce3b833df1e7321a407b08666f69657fdb (diff) | |
add global fileloader registry
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, |