summaryrefslogtreecommitdiff
path: root/src/state/editor
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-08-10 15:41:31 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-08-10 15:41:31 +0200
commitb747ca8af52129876b577a4f20f7105a05c6b002 (patch)
treed976a5c3cd135dfecb1014246936bb7a8b525c4b /src/state/editor
parent4763d8ce3b833df1e7321a407b08666f69657fdb (diff)
add global fileloader registry
Diffstat (limited to 'src/state/editor')
-rw-r--r--src/state/editor/cursorshape.rs6
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,