Skip to content

Commit ea61f88

Browse files
update error message formatting for unsupported types
1 parent 3475c1e commit ea61f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soroban-sdk-macros/src/map_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub fn map_type(t: &Type, allow_hash: bool) -> Result<ScSpecTypeDef, Error> {
174174
))?,
175175
}
176176
}
177-
_ => Err(Error::new(t.span(), "unsupported type: {t:#?}"))?,
177+
_ => Err(Error::new(t.span(), format!("unsupported type: {t:#?}")))?,
178178
}
179179
}
180180
Type::Tuple(TypeTuple { elems, .. }) => {

0 commit comments

Comments
 (0)