Skip to content

added method to form message using chunks #662

added method to form message using chunks

added method to form message using chunks #662

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy failed Dec 23, 2023 in 0s

clippy

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.77.0-nightly (d6d7a9386 2023-12-22)
  • cargo 1.77.0-nightly (1a2666ddd 2023-12-17)
  • clippy 0.1.76 (d6d7a93 2023-12-22)

Annotations

Check failure on line 400 in solana/solana-ibc/programs/solana-ibc/src/storage.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

methods called `new` usually return `Self`

error: methods called `new` usually return `Self`
   --> solana/solana-ibc/programs/solana-ibc/src/storage.rs:395:5
    |
395 | /     pub fn new(&mut self, total_len: usize) {
396 | |         let msg = vec![0; total_len + 4];
397 | |         self.msg = msg;
398 | |         let total_len_in_bytes = (total_len as u32).to_be_bytes();
399 | |         self.copy_into(0, &total_len_in_bytes);
400 | |     }
    | |_____^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self
    = note: `-D clippy::new-ret-no-self` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::new_ret_no_self)]`