From 84a888758a17bd80d0711c96fd68066fdb51735b Mon Sep 17 00:00:00 2001 From: David Mak Date: Fri, 8 Mar 2024 16:17:13 +0800 Subject: [PATCH] core: Rename unsafe functions to unchecked This is this intended name of the functions. --- nac3core/src/codegen/classes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3core/src/codegen/classes.rs b/nac3core/src/codegen/classes.rs index 34463ef..2f59657 100644 --- a/nac3core/src/codegen/classes.rs +++ b/nac3core/src/codegen/classes.rs @@ -980,7 +980,7 @@ impl<'ctx> NDArrayDataProxy<'ctx> { /// # Safety /// /// This function should be called with valid indices. - pub unsafe fn get_unsafe_const( + pub unsafe fn get_unchecked_const( &self, ctx: &mut CodeGenContext<'ctx, '_>, generator: &mut dyn CodeGenerator, @@ -994,7 +994,7 @@ impl<'ctx> NDArrayDataProxy<'ctx> { /// # Safety /// /// This function should be called with valid indices. - pub unsafe fn get_unsafe( + pub unsafe fn get_unchecked( &self, ctx: &mut CodeGenContext<'ctx, '_>, generator: &dyn CodeGenerator,