Skip to content

Commit

Permalink
Ignore clippy warnings on deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ysimonson committed Nov 18, 2018
1 parent cb3d95a commit 0ade19b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions capnpc/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,7 @@ fn generate_node(gen: &GeneratorContext,
Indent(
Box::new(Branch(vec![
Line("#[deprecated(since=\"0.9.2\", note=\"use into_reader()\")]".to_string()),
Line("#[allow(clippy::wrong_self_convention)]".to_string()),
Line(format!("pub fn as_reader(self) -> Reader<'a,{}> {{", params.params)),
Indent(Box::new(Line("self.into_reader()".to_string()))),
Line("}".to_string()),
Expand Down Expand Up @@ -1666,6 +1667,7 @@ fn generate_node(gen: &GeneratorContext,
}),
Indent(Box::new(Branch( vec!(
Line("#[deprecated(since=\"0.9.2\", note=\"use into_client()\")]".to_string()),
Line("#[allow(clippy::wrong_self_convention)]".to_string()),
Line(format!("pub fn from_server<_T: ::capnp::private::capability::ServerHook>(self) -> Client{} {{", bracketed_params)),
Indent(
Box::new(Line("self.into_client::<_T>()".to_string()))),
Expand Down

0 comments on commit 0ade19b

Please sign in to comment.