mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
typo
This commit is contained in:
parent
6a88ce7a7a
commit
7f85e52c71
1 changed files with 5 additions and 5 deletions
10
src/data.rs
10
src/data.rs
|
|
@ -240,24 +240,24 @@ impl GameMode {
|
|||
pub struct Transaction {
|
||||
pub name: String,
|
||||
pub steam_id: SteamID,
|
||||
pub action: TranactionAction,
|
||||
pub action: TransactionAction,
|
||||
pub team: TeamRef,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize))]
|
||||
pub enum TranactionAction {
|
||||
pub enum TransactionAction {
|
||||
Joined,
|
||||
Left,
|
||||
}
|
||||
|
||||
impl FromStr for TranactionAction {
|
||||
impl FromStr for TransactionAction {
|
||||
type Err = ParseError;
|
||||
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
match s {
|
||||
"Joined" => Ok(TranactionAction::Joined),
|
||||
"Left" => Ok(TranactionAction::Left),
|
||||
"Joined" => Ok(TransactionAction::Joined),
|
||||
"Left" => Ok(TransactionAction::Left),
|
||||
_ => Err(ParseError::InvalidText {
|
||||
role: "transaction action",
|
||||
text: s.to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue