From 508bf557f1839be85bb4933bf3b5391d7a3508cc Mon Sep 17 00:00:00 2001 From: norie balbinot <92960355+Noriebalbinot@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:02:57 -0300 Subject: [PATCH] Update xsqlda.rs --- rsfbclient-native/src/xsqlda.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsfbclient-native/src/xsqlda.rs b/rsfbclient-native/src/xsqlda.rs index b22a2b0..5aad50a 100644 --- a/rsfbclient-native/src/xsqlda.rs +++ b/rsfbclient-native/src/xsqlda.rs @@ -36,7 +36,7 @@ impl XSqlDa { /// Returns a mutable reference to a XSQLVAR pub fn get_xsqlvar_mut(&mut self, col: usize) -> Option<&mut ibase::XSQLVAR> { if col < self.len as usize { - let xsqlvar = unsafe { self.ptr.as_mut().sqlvar.get_unchecked_mut(col as usize) }; + let xsqlvar = unsafe { self.ptr.as_mut().sqlvar.get_mut(col as usize).unwrap() }; Some(xsqlvar) } else {