Skip to content

Multiple Clippy #[allow(...)] in codebase #397

@Arjun31415

Description

@Arjun31415

There are multiple allow statements in the codebase -

  1. Few in heap
    #[allow(clippy::new_ret_no_self)]
    pub fn new<T>() -> Heap<T>
    where

    #[allow(clippy::new_ret_no_self)]
    pub fn new<T>() -> Heap<T>
    where
  2. In SHA256-

    Rust/src/ciphers/sha256.rs

    Lines 103 to 106 in fbc20a7

    #[allow(dead_code)]
    // Let's keep this utility function
    pub fn get_hash_string(hash: &[u8; 32]) -> String {
    let mut result = String::new();
  3. In Salsa Cipher -
    #[allow(dead_code)]
    pub const C: [u32; 4] = [0x65787061, 0x6e642033, 0x322d6279, 0x7465206b];
  4. In N-Queens-
    #[allow(unused_imports)]
    use std::env::args;
    #[allow(dead_code)]
    fn main() {

These are only few of them.
Should these be resolved or ignored ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions