Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Jan 12, 2024
1 parent a274d51 commit ee1c26e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions capnpc/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1828,8 +1828,7 @@ fn generate_members_by_name(
}
members_by_name.sort_by_key(|k| k.0);

let mut members_by_name_string: String =
"pub static MEMBERS_BY_NAME : &[u16] = &[".into();
let mut members_by_name_string: String = "pub static MEMBERS_BY_NAME : &[u16] = &[".into();
for (i, (_, index)) in members_by_name.iter().enumerate() {
members_by_name_string += &format!("{}", *index);
if i + 1 < members_by_name.len() {
Expand Down

0 comments on commit ee1c26e

Please sign in to comment.