Skip to content

Commit

Permalink
fix: Build error due to merge conflict
Browse files Browse the repository at this point in the history
Due to two pull requests changing the same function a build error occurred. `fields` has move to inside `oneof` and has changed type.
  • Loading branch information
caspermeijn committed May 20, 2024
1 parent bb5a1fa commit b5ec6b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prost-build/src/code_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,9 @@ impl<'a> CodeGenerator<'a> {
self.buf
.push_str("#[allow(clippy::derive_partial_eq_without_eq)]\n");

let can_oneof_derive_copy = fields.iter().map(|(field, _idx)| field).all(|field| {
let can_oneof_derive_copy = oneof.fields.iter().all(|field| {
self.message_graph
.can_field_derive_copy(fq_message_name, field)
.can_field_derive_copy(fq_message_name, &field.descriptor)
});
self.buf.push_str(&format!(
"#[derive(Clone, {}PartialEq, {}::Oneof)]\n",
Expand Down

0 comments on commit b5ec6b3

Please sign in to comment.