Skip to content

Commit

Permalink
fix: move variables out of args in format string
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice committed Jan 23, 2024
1 parent 9c57e82 commit 9e44594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli/src/ts_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn parse_user_interface(i: &Box<TsInterfaceDecl>) -> Result<Option<Interface>> {
let type_name = typ.as_str();
if type_name != "I64" {
return anyhow::anyhow!(
format!("invalid type in function `{vn}`, using `{type_name}`. Interface `user` must only declare functions with type `I64`")
format!("Invalid type in function `{}`, using `{}`. Interface `user` must only declare functions with type `I64`", vn, type_name)
);
}

Expand Down

0 comments on commit 9e44594

Please sign in to comment.