From 5f34e97efb8d67d7b3763d53d747d06661bde558 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 24 Apr 2019 09:44:03 +0200 Subject: types: Add "new" derive --- librepology/src/v1/types/download.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'librepology/src/v1/types/download.rs') diff --git a/librepology/src/v1/types/download.rs b/librepology/src/v1/types/download.rs index e337baa..d52a2db 100644 --- a/librepology/src/v1/types/download.rs +++ b/librepology/src/v1/types/download.rs @@ -3,7 +3,7 @@ use std::ops::Deref; use url::Url; // list of package downloads -#[derive(Eq, PartialEq, Clone, Debug, Serialize, Deserialize)] +#[derive(Eq, PartialEq, Clone, Debug, Serialize, Deserialize, new)] pub struct Download(#[serde(with = "url_serde")] Url); impl Deref for Download { -- cgit v1.2.3