🔧 fix unused variable warning and suppress must-use lint in macros

- Prefix `_object_id` parameter with underscore to silence unused variable warning in `get_item`
- Add #[allow(unused_must_use)] to all action macro definitions in pmoupnp/macros.rs
- Remove redundant doc comment line break
This commit is contained in:
2026-04-04 00:54:13 +02:00
parent d81e7a9413
commit 34260e7cbd
2 changed files with 5 additions and 2 deletions

View File

@@ -443,7 +443,7 @@ pub trait MusicSource: Debug + Send + Sync {
/// let item = source.get_item("track-123").await?;
/// println!("Now playing: {} by {}", item.title, item.artist.unwrap_or_default());
/// ```
async fn get_item(&self, object_id: &str) -> Result<Item> {
async fn get_item(&self, _object_id: &str) -> Result<Item> {
// Default implementation: try to find it in parent's browse result
// This is inefficient and should be overridden by implementations
Err(MusicSourceError::NotSupported(