From 2a1270f280adffafb85967452ba8dc5202fa92db 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 fcb0532..fe28fae 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",