From a692a2ea445636f284bb805a09e0fc21c2da1edd Mon Sep 17 00:00:00 2001 From: Jan Range Date: Thu, 18 Jul 2024 23:18:46 +0200 Subject: [PATCH] fix typo --- src/identifier.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/identifier.rs b/src/identifier.rs index 32d728f..8802b9d 100644 --- a/src/identifier.rs +++ b/src/identifier.rs @@ -14,7 +14,7 @@ use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug)] #[serde(untagged)] pub enum Identifier { - PeristentId(String), + PersistentId(String), Id(i64), } @@ -25,7 +25,7 @@ impl FromStr for Identifier { // Otherwise, it is a persistent id match s.parse::() { Ok(_) => Ok(Identifier::Id(s.parse::().unwrap())), - Err(_) => Ok(Identifier::PeristentId(s.to_owned())), + Err(_) => Ok(Identifier::PersistentId(s.to_owned())), } } }