@@ -34,8 +34,8 @@ use cedar_policy_core::validator::json_schema::{
3434 CommonType , CommonTypeId , EntityTypeKind , StandardEntityType ,
3535} ;
3636use cedar_policy_core:: validator:: {
37- json_schema, ActionBehavior , AllDefs , RawName , SchemaError , ValidatorNamespaceDef ,
38- ValidatorSchema , ValidatorSchemaFragment , ConditionalName ,
37+ json_schema, ActionBehavior , AllDefs , ConditionalName , RawName , SchemaError ,
38+ ValidatorNamespaceDef , ValidatorSchema , ValidatorSchemaFragment ,
3939} ;
4040use smol_str:: { SmolStr , ToSmolStr } ;
4141use std:: collections:: BTreeMap ;
@@ -1757,7 +1757,10 @@ impl From<Schema> for json_schema::Fragment<RawName> {
17571757
17581758impl TryFrom < Schema > for ValidatorSchemaFragment < ConditionalName , ConditionalName > {
17591759 type Error = SchemaError ;
1760- fn try_from ( schema : Schema ) -> std:: result:: Result < ValidatorSchemaFragment < ConditionalName , ConditionalName > , Self :: Error > {
1760+ fn try_from (
1761+ schema : Schema ,
1762+ ) -> std:: result:: Result < ValidatorSchemaFragment < ConditionalName , ConditionalName > , Self :: Error >
1763+ {
17611764 let json_fragment: json_schema:: Fragment < RawName > = schema. into ( ) ;
17621765 json_fragment. try_into ( )
17631766 }
@@ -1975,7 +1978,7 @@ impl TryFrom<Schema> for ValidatorSchema {
19751978#[ cfg( feature = "cedar-policy" ) ]
19761979impl TryFrom < Schema > for cedar_policy:: SchemaFragment {
19771980 type Error = SchemaError ;
1978- fn try_from ( schema : Schema ) -> std:: result:: Result < Self , Self :: Error > {
1981+ fn try_from ( schema : Schema ) -> std:: result:: Result < Self , Self :: Error > {
19791982 cedar_policy:: SchemaFragment :: try_from ( json_schema:: Fragment :: < RawName > :: from ( schema) )
19801983 }
19811984}
0 commit comments