From 2caf0264c713a09c651a46c288da13fca0a7ac02 Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Sun, 18 Oct 2020 17:00:28 +0200 Subject: [PATCH] src: fix tests --- rust-bindings/rust/src/sysroot_deploy_tree_opts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-bindings/rust/src/sysroot_deploy_tree_opts.rs b/rust-bindings/rust/src/sysroot_deploy_tree_opts.rs index 040ab63d..1fed6026 100644 --- a/rust-bindings/rust/src/sysroot_deploy_tree_opts.rs +++ b/rust-bindings/rust/src/sysroot_deploy_tree_opts.rs @@ -48,7 +48,7 @@ mod tests { use super::*; use std::{ffi::CStr, ptr::null_mut}; - unsafe fn ptr_array_as_slice<'a, T>(ptr: *mut *mut T) -> &'a [*mut T] { + unsafe fn ptr_array_to_slice<'a, T>(ptr: *mut *mut T) -> &'a [*mut T] { let mut len = 0; while !(*ptr.offset(len)).is_null() { len += 1;