Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/cattle.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use serde::{Deserialize, Serialize};
use std::str::FromStr;
use inflector::Inflector;

/// An enum representing the different breeds of cattle.
///
Expand Down Expand Up @@ -317,7 +318,7 @@ impl ToString for CattleBreed {
CattleBreed::Ndama => "N'dama".to_string(),
CattleBreed::RedPolledOstland => "Red Polled Østland".to_string(),
CattleBreed::SwedishRedAndWhite => "Swedish Red-and-White".to_string(),
_ => format!("{:?}", self),
_ => format!("{:?}", self).to_title_case(),
}
}
}
Expand Down
Loading