From 21f8a043ebe11478bc674d92f79e8e4994393966 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 12 Dec 2024 12:19:38 +0100 Subject: [PATCH] core_api: add `Default` for `Playlist` --- src/core_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_api.rs b/src/core_api.rs index 72e7a76..a529a85 100644 --- a/src/core_api.rs +++ b/src/core_api.rs @@ -82,7 +82,7 @@ pub enum MpvDataType { } /// A mpv playlist. -#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Eq, Default, Serialize, Deserialize)] pub struct Playlist(pub Vec); /// A single entry in the mpv playlist.