From 89ff74457eebafd9bbe02e1c9a0c05846f45f5b4 Mon Sep 17 00:00:00 2001 From: harupy Date: Wed, 4 Jan 2023 13:19:23 +0900 Subject: [PATCH] Use Self --- core/src/location.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/location.rs b/core/src/location.rs index b7b2c8b..021dc2f 100644 --- a/core/src/location.rs +++ b/core/src/location.rs @@ -67,7 +67,7 @@ impl Location { + offset .try_into() .expect("offset should be able to convert to isize")) as u32; - Location { + Self { row: self.row, column, } @@ -81,7 +81,7 @@ impl Location { + offset .try_into() .expect("offset should be able to convert to isize")) as u32; - Location { + Self { row, column: self.column, }