From 04a5a938994ddb95cfaa9a74b180e457d3a2b5d0 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 2 Aug 2024 11:38:19 +0200 Subject: implement new lua interface --- src/cursor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cursor.rs') diff --git a/src/cursor.rs b/src/cursor.rs index ad6703e..8ab538b 100644 --- a/src/cursor.rs +++ b/src/cursor.rs @@ -30,13 +30,13 @@ impl Cursor { } } - pub fn with_position(mut self, x: isize, y: isize) -> Self { + pub const fn with_position(mut self, x: isize, y: isize) -> Self { self.x = x; self.y = y; self } - pub fn with_max(mut self, x: isize, y: isize) -> Self { + pub const fn with_max(mut self, x: isize, y: isize) -> Self { self.x_max = x; self.y_max = y; self -- cgit v1.2.3-70-g09d2