summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/name.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2019-04-24 09:44:03 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2019-04-24 10:00:15 +0200
commit5f34e97efb8d67d7b3763d53d747d06661bde558 (patch)
treeda74650c8597fed1f194a123aa8d610943428f71 /librepology/src/v1/types/name.rs
parentfcf973c16d4128dda76b809b0d5b9a2635afae47 (diff)
types: Add "new" derive
Diffstat (limited to 'librepology/src/v1/types/name.rs')
-rw-r--r--librepology/src/v1/types/name.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/librepology/src/v1/types/name.rs b/librepology/src/v1/types/name.rs
index 649e70d..70e3317 100644
--- a/librepology/src/v1/types/name.rs
+++ b/librepology/src/v1/types/name.rs
@@ -1,7 +1,7 @@
use std::ops::Deref;
// package name as in repository (if different from version)
-#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, Serialize, Deserialize)]
+#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, Serialize, Deserialize, new)]
pub struct Name(String);
impl Deref for Name {