Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Jul 18, 2024
1 parent 9f3d4f4 commit a692a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/identifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
#[serde(untagged)]
pub enum Identifier {
PeristentId(String),
PersistentId(String),
Id(i64),
}

Expand All @@ -25,7 +25,7 @@ impl FromStr for Identifier {
// Otherwise, it is a persistent id
match s.parse::<i64>() {
Ok(_) => Ok(Identifier::Id(s.parse::<i64>().unwrap())),
Err(_) => Ok(Identifier::PeristentId(s.to_owned())),
Err(_) => Ok(Identifier::PersistentId(s.to_owned())),
}
}
}

0 comments on commit a692a2e

Please sign in to comment.