Skip to content

Commit

Permalink
📝 fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Xudong-Huang committed Oct 7, 2024
1 parent a150624 commit db80a28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions may_rpc_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion src/conetty/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8> {
// let mut cursor = Cursor::new(self.data);

Expand Down

0 comments on commit db80a28

Please sign in to comment.