From 3b260aa3e7a92caa1ddc7029e27c9b0624005114 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 18 Jun 2020 13:55:25 -0400 Subject: [PATCH] Add osu! genre Folk (13) --- youmubot-osu/src/models/mod.rs | 1 + youmubot-osu/src/models/parse.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/youmubot-osu/src/models/mod.rs b/youmubot-osu/src/models/mod.rs index c568887..d8d2b72 100644 --- a/youmubot-osu/src/models/mod.rs +++ b/youmubot-osu/src/models/mod.rs @@ -130,6 +130,7 @@ pub enum Genre { Novelty, HipHop, Electronic, + Folk, } impl fmt::Display for Genre { diff --git a/youmubot-osu/src/models/parse.rs b/youmubot-osu/src/models/parse.rs index c4aed0d..a653c16 100644 --- a/youmubot-osu/src/models/parse.rs +++ b/youmubot-osu/src/models/parse.rs @@ -218,6 +218,7 @@ fn parse_genre(s: impl AsRef) -> ParseResult { 7 => Novelty, 9 => HipHop, 10 => Electronic, + 13 => Folk, _ => { return Err(ParseError::InvalidValue { field: "genre",