summaryrefslogtreecommitdiff
path: root/src/cursor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cursor.rs')
-rw-r--r--src/cursor.rs4
1 files changed, 2 insertions, 2 deletions
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