fix using fayalite as a dependency
This commit is contained in:
		
							parent
							
								
									c0c5b550bc
								
							
						
					
					
						commit
						450e1004b6
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -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 ") | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue