From bd633d697a8bb9dc9b3c90eaa9a24622c847ec63 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 19 Jun 2021 00:20:40 -0400 Subject: [PATCH] [rust] idiot --- rust/src/direct/methods.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/src/direct/methods.rs b/rust/src/direct/methods.rs index e0799a62f..9001bc645 100644 --- a/rust/src/direct/methods.rs +++ b/rust/src/direct/methods.rs @@ -500,21 +500,21 @@ impl NcDirect { /// Gets the current number of rows. /// /// *C style function: [ncdirect_dim_y()][crate::ncdirect_dim_y].* - pub fn dim_y(mut &self) -> NcDim { + pub fn dim_y(&mut self) -> NcDim { unsafe { crate::ncdirect_dim_y(self) as NcDim } } /// Gets the current number of columns. /// /// *C style function: [ncdirect_dim_x()][crate::ncdirect_dim_x].* - pub fn dim_x(mut &self) -> NcDim { + pub fn dim_x(&mut self) -> NcDim { unsafe { crate::ncdirect_dim_x(self) as NcDim } } /// Gets the current number of rows and columns. /// /// *C style function: [ncdirect_dim_y()][crate::ncdirect_dim_y].* - pub fn dim_yx(mut &self) -> (NcDim, NcDim) { + pub fn dim_yx(&mut self) -> (NcDim, NcDim) { let y = unsafe { crate::ncdirect_dim_y(self) as NcDim }; let x = unsafe { crate::ncdirect_dim_x(self) as NcDim }; (y, x)