diff --git a/capnpc/src/codegen.rs b/capnpc/src/codegen.rs index 5486d3b61..1fb825df8 100644 --- a/capnpc/src/codegen.rs +++ b/capnpc/src/codegen.rs @@ -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() {