@@ -42,14 +42,14 @@ pub fn is_input_type_spec_safe(ident: &Ident, generics: &Generics) -> Result<(),
4242 let ty: Type = syn:: parse_str ( & ident. to_string ( ) ) . map_err ( |e| {
4343 Error :: new (
4444 ident. span ( ) ,
45- format ! ( "type name {:? } cannot be used in XDR spec: {}" , ident, e) ,
45+ format ! ( "type name {} cannot be used in XDR spec: {}" , ident, e) ,
4646 )
4747 } ) ?;
4848 match map_type ( & ty, false , false ) {
4949 Ok ( ScSpecTypeDef :: Udt ( _) ) => Ok ( ( ) ) ,
5050 _ => Err ( Error :: new (
5151 ident. span ( ) ,
52- format ! ( "type name `{}` conflicts with a soroban_sdk type" , ident, ) ,
52+ format ! ( "type name `{}` conflicts with a soroban_sdk type" , ident) ,
5353 ) ) ,
5454 }
5555}
@@ -91,7 +91,7 @@ pub fn map_type(t: &Type, allow_ref: bool, allow_hash: bool) -> Result<ScSpecTyp
9191 "MuxedAddress" => Ok ( ScSpecTypeDef :: MuxedAddress ) ,
9292 "Timepoint" => Ok ( ScSpecTypeDef :: Timepoint ) ,
9393 "Duration" => Ok ( ScSpecTypeDef :: Duration ) ,
94- // Check if types that require generics are being used without any
94+ // Check if types that require generics are being used without any path arguments
9595 "Result" | "Option" | "Vec" | "Map" | "BytesN" | "Hash" => Err ( Error :: new (
9696 ident. span ( ) ,
9797 format ! ( "type {} requires generic arguments" , ident) ,
0 commit comments