mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
src: fix tests
This commit is contained in:
parent
e18919e0ef
commit
2caf0264c7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user