fix using fayalite as a dependency
All checks were successful
/ deps (pull_request) Successful in 14s
/ test (pull_request) Successful in 3m51s
/ deps (push) Successful in 13s
/ test (push) Successful in 4m14s

This commit is contained in:
Jacob Lifshay 2025-03-09 23:14:14 -07:00
parent c0c5b550bc
commit 450e1004b6
Signed by: programmerjake
SSH key fingerprint: SHA256:HnFTLGpSm4Q4Fj502oCFisjZSoakwEuTsJJMSke63RQ

View file

@ -84,7 +84,7 @@ impl<'de> Deserialize<'de> for PhantomConstCanonicalValue {
}
pub trait PhantomConstValue: Intern + InternedCompare + Serialize + fmt::Debug {
fn deserialize<'de, D>(deserializer: D) -> Result<Interned<Self>, D::Error>
fn deserialize_value<'de, D>(deserializer: D) -> Result<Interned<Self>, D::Error>
where
D: serde::Deserializer<'de>;
}
@ -94,7 +94,7 @@ where
T: ?Sized + Intern + InternedCompare + Serialize + fmt::Debug,
Interned<T>: DeserializeOwned,
{
fn deserialize<'de, D>(deserializer: D) -> Result<Interned<Self>, D::Error>
fn deserialize_value<'de, D>(deserializer: D) -> Result<Interned<Self>, D::Error>
where
D: serde::Deserializer<'de>,
{
@ -189,7 +189,8 @@ impl<T: ?Sized + PhantomConstValue> Memoize for PhantomConstCanonicalMemoize<T,
type Output = Interned<T>;
fn inner(self, input: &Self::Input) -> Self::Output {
PhantomConstValue::deserialize(input.as_json_value()).expect("deserialization failed ")
PhantomConstValue::deserialize_value(input.as_json_value())
.expect("deserialization failed ")
}
}