ensure uses of canonical-json are property gated
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
67ffedabbf
commit
dcf6d7e04a
@ -600,6 +600,7 @@ fn expand_checked_impls(input: &ItemStruct, validate: Path) -> TokenStream {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "canonical-json")]
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl<'a, #generic_params> std::convert::TryFrom<&'a crate::CanonicalJsonValue> for &'a #id_ty {
|
impl<'a, #generic_params> std::convert::TryFrom<&'a crate::CanonicalJsonValue> for &'a #id_ty {
|
||||||
type Error = crate::IdParseError;
|
type Error = crate::IdParseError;
|
||||||
@ -618,6 +619,7 @@ fn expand_checked_impls(input: &ItemStruct, validate: Path) -> TokenStream {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "canonical-json")]
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl<'a, #generic_params> std::convert::TryFrom<Option<&'a crate::CanonicalJsonValue>> for &'a #id_ty {
|
impl<'a, #generic_params> std::convert::TryFrom<Option<&'a crate::CanonicalJsonValue>> for &'a #id_ty {
|
||||||
type Error = crate::IdParseError;
|
type Error = crate::IdParseError;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user