Skip to content

Commit df0b556

Browse files
zh-jq-bdwrensha
authored andcommitted
fix clippy 1.64 warning
1 parent 3cb4bb1 commit df0b556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

capnpc/src/codegen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ fn generate_node(gen: &GeneratorContext,
17711771

17721772
output.push(Branch(vec!(
17731773
Line("#[repr(u16)]".to_string()),
1774-
Line("#[derive(Clone, Copy, Debug, PartialEq)]".to_string()),
1774+
Line("#[derive(Clone, Copy, Debug, PartialEq, Eq)]".to_string()),
17751775
Line(format!("pub enum {} {{", last_name)),
17761776
Indent(Box::new(Branch(members))),
17771777
Line("}".to_string()))));
@@ -1877,7 +1877,7 @@ fn generate_node(gen: &GeneratorContext,
18771877
capitalize_first_letter(name), results_ty_params, result_type)));
18781878
server_interior.push(
18791879
Line(format!(
1880-
"fn {}(&mut self, _: {}Params<{}>, _: {}Results<{}>) -> ::capnp::capability::Promise<(), ::capnp::Error> {{ ::capnp::capability::Promise::err(::capnp::Error::unimplemented(format!(\"method {}::Server::{} not implemented\"))) }}",
1880+
"fn {}(&mut self, _: {}Params<{}>, _: {}Results<{}>) -> ::capnp::capability::Promise<(), ::capnp::Error> {{ ::capnp::capability::Promise::err(::capnp::Error::unimplemented(\"method {}::Server::{} not implemented\".to_string())) }}",
18811881
module_name(name),
18821882
capitalize_first_letter(name), params_ty_params,
18831883
capitalize_first_letter(name), results_ty_params,

0 commit comments

Comments
 (0)