🔧 Add #[allow(dead_code)] to unused items

- Suppress dead code warnings for utility functions, enums and traits not yet used in production
- Reorganize imports to follow module conventions (e.g., `DeviceIdentity` moved earlier in openhome_renderer.rs)
- Improve formatting of ClientMessage variants for readability
These changes prepare codebase groundwork without altering runtime behavior.
This commit is contained in:
2026-04-04 01:03:45 +02:00
parent 77d0d73ed7
commit ff699d220f
13 changed files with 44 additions and 10 deletions

View File

@@ -38,6 +38,7 @@ impl BroadcastPacer {
}
/// Reset the pacer clock (call when audio timestamp resets to 0).
#[allow(dead_code)]
pub fn reset(&mut self) {
self.start_time = Instant::now();
trace!("{} broadcaster: pacer reset", self.label);

View File

@@ -296,6 +296,7 @@ pub(crate) fn validate_frame_header_crc(data: &[u8], offset: usize) -> bool {
/// keeping the data from the last sync code onward for the next iteration.
///
/// We need at least 2 validated sync codes to identify one complete frame.
#[allow(dead_code)]
pub(crate) fn find_complete_frames_boundary(data: &[u8]) -> usize {
if data.len() < 4 {
return 0;