diff --git a/may_rpc_derive/src/lib.rs b/may_rpc_derive/src/lib.rs index e76d4d7..262f9e9 100644 --- a/may_rpc_derive/src/lib.rs +++ b/may_rpc_derive/src/lib.rs @@ -250,7 +250,7 @@ struct ServiceGenerator<'a> { derive_serialize: &'a TokenStream2, } -impl<'a> ServiceGenerator<'a> { +impl ServiceGenerator<'_> { fn trait_service(&self) -> TokenStream2 { let &Self { attrs, @@ -410,7 +410,7 @@ impl<'a> ServiceGenerator<'a> { } } -impl<'a> ToTokens for ServiceGenerator<'a> { +impl ToTokens for ServiceGenerator<'_> { fn to_tokens(&self, output: &mut TokenStream2) { output.extend(vec![ self.trait_service(), diff --git a/src/conetty/frame.rs b/src/conetty/frame.rs index 318c7b5..5e0e24b 100644 --- a/src/conetty/frame.rs +++ b/src/conetty/frame.rs @@ -60,7 +60,7 @@ impl Frame { Ok(Frame { id, data }) } - /// convert self into raw buf that can be re-send as a frame + // /// convert self into raw buf that can be re-send as a frame // pub fn finish(self, id: u64) -> Vec { // let mut cursor = Cursor::new(self.data);