Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

rockbox-sys: fix pointer issue

rockbox-sys: fix pointer issue

rockbox-sys: fix pointer issue

+2 -2
+1 -1
crates/sys/src/lib.rs
··· 59 59 } else { 60 60 // Safety: Ensure that the pointer is valid for $len elements, 61 61 // and that the memory was allocated in a way that is compatible with Rust's Vec. 62 - unsafe { Vec::from_raw_parts($ptr, $len, $len) } 62 + unsafe { Vec::from_raw_parts($ptr as *mut i8, $len, $len) } 63 63 } 64 64 }}; 65 65 }
+1 -1
crates/sys/src/types/tree.rs
··· 1 1 use serde::{Deserialize, Serialize}; 2 2 3 - use crate::{cast_ptr, convert_ptr_to_vec, get_string_from_ptr, ptr_to_option}; 3 + use crate::{cast_ptr, convert_ptr_to_vec, get_string_from_ptr}; 4 4 5 5 #[derive(Debug, Serialize, Deserialize)] 6 6 pub struct TreeCache {