Skip to content

Commit

Permalink
Use format! instead of push_str
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet committed Jul 13, 2021
1 parent 1303e3c commit 7f88f61
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/cli-support/src/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,7 @@ impl VectorKind {
VectorKind::F64 => "Float64Array".to_string(),
VectorKind::Externref => "any[]".to_string(),
VectorKind::NamedExternref(ref name) => {
let mut type_str = "(".to_string();
type_str.push_str(name);
type_str.push_str(")[]");
type_str
format!("({})[]", name)
}
}
}
Expand Down

0 comments on commit 7f88f61

Please sign in to comment.