Compare commits

..

No commits in common. "16e0487833cc5170f6b20f988fde24a66f4f9369" and "e90e83c31009bd24eedee473af81b4dbdacabe43" have entirely different histories.

2 changed files with 2 additions and 10 deletions

View File

@ -14,4 +14,3 @@ serde = { version = "1.0.71", features = ["rc", ] }
serde_derive = "1.0.71"
serde_json = { version = "1.0", features = ["raw_value",] }
smallvec = { version = "^1.5.0", features = ["serde", ] }
uuid = { version = "0.8", features = ["serde", "v4"] }

View File

@ -108,10 +108,9 @@ impl<OBJ> core::fmt::Display for Id<OBJ> {
}
impl<OBJ> Id<OBJ> {
fn new_with_prefix(prefix: &str) -> Self {
let id = uuid::Uuid::new_v4().to_string();
pub fn new() -> Self {
Self {
inner: String::from(prefix) + &id,
inner: String::new(),
_ph: PhantomData,
}
}
@ -129,12 +128,6 @@ impl<OBJ> Id<OBJ> {
}
}
impl Id<Account> {
pub fn new() -> Self {
Self::new_with_prefix("A")
}
}
#[derive(Deserialize, Serialize, Debug)]
#[serde(transparent)]
pub struct State<OBJ> {