• actix-cors 0.6.4/src/inner.rs
    79
            // return early if all origins are allowed or get ref to allowed origins set
    80
            #[allow(clippy::mutable_key_type)]
    81
            let allowed_origins = match &self.allowed_origins {
    163
            // return early if all headers are allowed or get ref to allowed origins set
    164
            #[allow(clippy::mutable_key_type)]
    165
            let allowed_headers = match &self.allowed_headers {
    181
                    // inserted keys so this lint exception is acceptable
    182
                    #[allow(clippy::mutable_key_type)]
    183
                    let mut request_headers = HashSet::with_capacity(8);
  • actix-web 4.3.0/src/middleware/compress.rs
    321
            assert_eq!(res.status(), StatusCode::OK);
    322
            #[allow(clippy::mutable_key_type)]
    323
            let vary_headers = res.headers().get_all(header::VARY).collect::<HashSet<_>>();
  • apollo-router 1.9.0/src/plugins/telemetry/mod.rs
    750
        ) -> String {
    751
            #[allow(clippy::mutable_key_type)] // False positive lint
    752
            let variables = variables
  • apollo-router 1.9.0/src/spec/query.rs
    3
    //! Parsing, formatting and manipulation of queries.
    4
    #![allow(clippy::mutable_key_type)]
    1060
        // ref: https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
    1061
        #[allow(clippy::mutable_key_type)]
    1062
        // Spec: https://spec.graphql.org/draft/#sec-Language.Operations
  • beisen 0.1.11/src/client.rs
    37
            let token = format!("Bearer {}", token.access_token);
    38
            #[allow(clippy::mutable_key_type)]
    39
            let headers = std::collections::HashMap::from([
  • cashweb-keyserver-client 0.1.0-alpha.4/src/manager.rs
    247
        /// Crawl peers.
    248
        #[allow(clippy::mutable_key_type)]
    249
        pub async fn crawl_peers(
  • ckb-cli 1.4.0/src/main.rs
    29
    mod plugin;
    30
    #[allow(clippy::mutable_key_type)]
    31
    mod subcommands;
    32
    #[allow(clippy::mutable_key_type)]
    33
    mod utils;
  • ckb-index 1.0.0/src/lib.rs
    1
    mod error;
    2
    #[allow(clippy::mutable_key_type)]
    3
    mod index;
  • ckb-mock-tx-types 0.106.0/src/lib.rs
    126
        #[allow(clippy::mutable_key_type)]
    127
        pub fn from_both<L: MockResourceLoader>(
  • ckb-sdk 2.4.0/src/tx_builder/acp.rs
    47
        ) -> Result<TransactionView, TxBuilderError> {
    48
            #[allow(clippy::mutable_key_type)]
    49
            let mut cell_deps = HashSet::new();
  • ckb-sdk 2.4.0/src/tx_builder/cheque.rs
    60
            #[allow(clippy::mutable_key_type)]
    61
            let mut cell_deps = HashSet::new();
  • ckb-sdk 2.4.0/src/tx_builder/dao.rs
    143
                .ok_or_else(|| TxBuilderError::ResolveCellDepFailed(dao_type_script.clone()))?;
    144
            #[allow(clippy::mutable_key_type)]
    145
            let mut cell_deps = HashSet::new();
    262
                .ok_or_else(|| TxBuilderError::ResolveCellDepFailed(dao_type_script.clone()))?;
    263
            #[allow(clippy::mutable_key_type)]
    264
            let mut cell_deps = HashSet::new();
  • ckb-sdk 2.4.0/src/tx_builder/mod.rs
    686
        let mut cell_deps = Vec::new();
    687
        #[allow(clippy::mutable_key_type)]
    688
        let mut resolved_scripts = HashSet::new();
    927
    ) -> Result<ScriptGroups, TransactionDependencyError> {
    928
        #[allow(clippy::mutable_key_type)]
    929
        let mut lock_groups: HashMap<Byte32, ScriptGroup> = HashMap::default();
    930
        #[allow(clippy::mutable_key_type)]
    931
        let mut type_groups: HashMap<Byte32, ScriptGroup> = HashMap::default();
  • ckb-sdk 2.4.0/src/tx_builder/omni_lock.rs
    45
        ) -> Result<TransactionView, TxBuilderError> {
    46
            #[allow(clippy::mutable_key_type)]
    47
            let mut cell_deps = HashSet::new();
    48
            #[allow(clippy::mutable_key_type)]
    49
            let mut inputs = HashSet::new();
  • ckb-sdk 2.4.0/src/tx_builder/transfer.rs
    35
        ) -> Result<TransactionView, TxBuilderError> {
    36
            #[allow(clippy::mutable_key_type)]
    37
            let mut cell_deps = HashSet::new();
  • ckb-sdk-types 0.101.3/src/lib.rs
    1
    #[allow(clippy::mutable_key_type)]
    2
    pub mod transaction;
  • css-inline 0.8.5/src/lib.rs
    236
            //   2. Resulting styles are merged into existing "style" tags.
    237
            #[allow(clippy::mutable_key_type)]
    238
            // Each matched element is identified by their raw pointers - they are evaluated once
    395
    #[allow(clippy::mutable_key_type)]
    396
    fn process_css(
  • fishrock_lambda_runtime 0.3.0-patched.1/src/simulated.rs
    29
        pub fn new() -> Self {
    30
            #[allow(clippy::mutable_key_type)]
    31
            let map = HashMap::new();
  • haphazard 0.1.5/src/domain.rs
    562
                    // Find all guarded addresses.
    563
                    #[allow(clippy::mutable_key_type)]
    564
                    //XXX: Maybe use a sorted vec to reduce heap allocations, and have O(log(n)) lookups
  • heater 0.2.3/src/config.rs
    283
            #[allow(clippy::mutable_key_type)]
    284
            let v: HashSet<HeaderValue> = cfg.generate_language_variations().iter().cloned().collect();
    285
            #[allow(clippy::mutable_key_type)]
    286
            let expected: HashSet<HeaderValue> = expected.iter().map(|v| hv!(*v)).collect();
    294
            #[allow(clippy::mutable_key_type)]
    295
            let header_values: HashSet<HeaderValue> = cfg
  • http-sig 0.4.1/src/mock_request.rs
    101
            // Extract headers
    102
            #[allow(clippy::mutable_key_type)]
    103
            let mut headers = HashMap::new();
  • httpclient 0.13.0/src/recorder.rs
    40
            // println!("Request recorder opened at {}", path.display());
    41
            #[allow(clippy::mutable_key_type)]
    42
                let requests: HashMap<InMemoryRequest, InMemoryResponse> = load_requests(&path)
    69
            fs::create_dir_all(path.parent().unwrap())?;
    70
            #[allow(clippy::mutable_key_type)]
    71
                let mut map = if let Ok(f) = fs::File::open(&path) {
  • ipfs 0.2.1/tests/pubsub.rs
    50
    #[tokio::test(max_threads = 1)]
    51
    #[allow(clippy::mutable_key_type)] // clippy doesn't like Vec inside HashSet
    52
    async fn publish_between_two_nodes() {
  • jammdb 0.9.0/src/bucket.rs
    944
            #[allow(clippy::mutable_key_type)]
    945
            let mut bucket_metas: HashMap<Bytes, BucketMeta> = HashMap::new();
  • jammdb 0.9.0/src/lib.rs
    114
    #[allow(clippy::mutable_key_type)]
    115
    mod bucket;
  • jsonwebtokens 1.2.0/src/verifier.rs
    476
        #[cfg(feature = "matching")]
    477
        #[allow(clippy::mutable_key_type)]
    478
        pub fn string_matches_one_of(
  • krill 0.12.1/src/daemon/ca/manager.rs
    1494
        #[allow(clippy::mutable_key_type)]
    1495
        async fn ca_repo_sync(
  • krill 0.12.1/src/daemon/ca/publishing.rs
    316
        #[allow(clippy::mutable_key_type)]
    317
        /// Returns all PublishedElements mapped to each RepositoryContact.
    526
        #[allow(clippy::mutable_key_type)]
    527
        /// Adds all the elements for this resource class to the map which is passed on. It will use
    914
        /// repository migration.
    915
        #[allow(clippy::mutable_key_type)]
    916
        fn add_elements(&self, map: &mut HashMap<RepositoryContact, Vec<PublishElement>>, dflt_repo: &RepositoryContact) {
    1253
    #[allow(clippy::mutable_key_type)]
    1254
    pub struct ManifestBuilder {
    1267
        #[allow(clippy::mutable_key_type)]
    1268
        pub fn with_objects(
  • krill 0.12.1/src/pubd/mod.rs
    4
    mod publishers;
    5
    #[allow(clippy::mutable_key_type)]
    6
    mod repository;
  • lambda_runtime 0.7.3/src/simulated.rs
    29
        pub fn new() -> Self {
    30
            #[allow(clippy::mutable_key_type)]
    31
            let map = HashMap::new();
  • lawn 0.1.1/src/client.rs
    769
        #[allow(clippy::mutable_key_type)]
    770
        async fn create_clipboard_channel(
  • lawn 0.1.1/src/config.rs
    192
        #[allow(clippy::mutable_key_type)]
    193
        pub fn env_vars(&self) -> &BTreeMap<Bytes, Bytes> {
  • lawn 0.1.1/src/server.rs
    791
        ) -> Result<protocol::ChannelID, handler::Error> {
    792
            #[allow(clippy::mutable_key_type)]
    793
            let meta = match &m.meta {
  • ldap-rs 0.4.0/src/filter.rs
    109
    #[allow(clippy::mutable_key_type)]
    110
    fn parse_set(pairs: RulePairs) -> SetOf<Filter> {
  • lelwel 0.4.2/src/frontend/sema.rs
    658
    #[allow(clippy::mutable_key_type)]
    659
    impl<'a> CancelSetGenerator<'a> {
  • lets-see-if-this-builds-on-docs-rs 0.0.2/src/plugins/telemetry/mod.rs
    686
        ) -> String {
    687
            #[allow(clippy::mutable_key_type)] // False positive lint
    688
            let variables = variables
  • lets-see-if-this-builds-on-docs-rs 0.0.2/src/spec/query.rs
    867
        // ref: https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
    868
        #[allow(clippy::mutable_key_type)]
    869
        // Spec: https://spec.graphql.org/draft/#sec-Language.Operations
  • libp2p-kad 0.42.1/src/behaviour/test.rs
    529
            #[allow(clippy::mutable_key_type)] // False positive, we never modify `Bytes`.
    530
            let records = records
    902
            #[allow(clippy::mutable_key_type)] // False positive, we never modify `Bytes`.
    903
            let keys: HashSet<_> = keys.into_iter().take(num_total).collect();
  • llvm-ir 0.8.2/src/function.rs
    280
        /// Map from llvm-sys basic block to its `Name`
    281
        #[allow(clippy::mutable_key_type)] // We use LLVMBasicBlockRef as a *const, even though it's technically a *mut
    282
        pub bb_names: &'a HashMap<LLVMBasicBlockRef, Name>,
    283
        /// Map from llvm-sys value to its `Name`
    284
        #[allow(clippy::mutable_key_type)] // We use LLVMValueRef as a *const, even though it's technically a *mut
    285
        pub val_names: &'a HashMap<LLVMValueRef, Name>,
    334
                .collect();
    335
            #[allow(clippy::mutable_key_type)] // We use LLVMBasicBlockRef as a *const, even though it's technically a *mut
    336
            let bb_names: HashMap<LLVMBasicBlockRef, Name> = bbresults
    340
            debug!("Collected names of {} basic blocks", bb_names.len());
    341
            #[allow(clippy::mutable_key_type)] // We use LLVMValueRef as a *const, even though it's technically a *mut
    342
            let val_names: HashMap<LLVMValueRef, Name> = bbresults
  • llvm-ir 0.8.2/src/module.rs
    499
        /// Map from an llvm-sys constant to the corresponding llvm-ir `ConstantRef`
    500
        #[allow(clippy::mutable_key_type)] // We use LLVMValueRef as a *const, even though it's technically a *mut
    501
        pub constants: HashMap<LLVMValueRef, ConstantRef>,
    502
        /// Map from an llvm-sys global to its `Name`
    503
        #[allow(clippy::mutable_key_type)] // We use LLVMValueRef as a *const, even though it's technically a *mut
    504
        pub global_names: &'a HashMap<LLVMValueRef, Name>,
    507
    impl<'a> ModuleContext<'a> {
    508
        #[allow(clippy::mutable_key_type)] // We use LLVMValueRef as a *const, even though it's technically a *mut
    509
        fn new(global_names: &'a HashMap<LLVMValueRef, Name>) -> Self {
    530
            //   referenced object from having only its `LLVMValueRef`.
    531
            #[allow(clippy::mutable_key_type)] // We use LLVMValueRef as a *const, even though it's technically a *mut
    532
            let global_names: HashMap<LLVMValueRef, Name> = get_defined_functions(module)
  • metrics-exporter-newrelic 0.2.0/src/lib.rs
    172
            let mut metrics = vec![];
    173
            #[allow(clippy::mutable_key_type)]
    174
            let mut reported_counts = HashMap::new();
  • metrics-exporter-tcp 0.7.0/src/lib.rs
    331
    #[allow(clippy::mutable_key_type)]
    332
    fn run_transport(
    502
    #[allow(clippy::mutable_key_type)]
    503
    fn generate_metadata_messages(
  • metrics-util 0.14.0/src/debugging.rs
    40
        /// Converts this snapshot to a mapping of metric data, keyed by the metric key itself.
    41
        #[allow(clippy::mutable_key_type)]
    42
        pub fn into_hashmap(
  • msix 0.4.0/src/pkcs7.rs
    13
    #[allow(clippy::mutable_key_type)]
    14
    pub fn build_pkcs7(signer: &Signer, encap_content_info: EncapsulatedContentInfo) -> SignedData {
  • mun_memory 0.4.0/src/gc/mark_sweep.rs
    1010
            #[allow(clippy::mutable_key_type)]
    1011
            fn map_struct(
  • mun_memory 0.4.0/src/mapping.rs
    79
    impl Mapping {
    80
        #[allow(clippy::mutable_key_type)]
    81
        pub fn new(old: &[Type], new: &[Type]) -> Self {
  • ntex-amqp 0.7.0/src/error.rs
    203
        #[allow(clippy::mutable_key_type)]
    204
        pub fn fields(mut self, fields: protocol::FieldsVec) -> Self {
  • ntex-http 0.1.9/src/map.rs
    387
        #[inline]
    388
        #[allow(clippy::mutable_key_type)]
    389
        fn from_iter<T: IntoIterator<Item = (N, V)>>(iter: T) -> Self {
  • pkgcraft 0.0.4/src/pkgsh/builtins.rs
    315
        let static_scopes: Vec<_> = vec![Scope::Global, Scope::Eclass];
    316
        #[allow(clippy::mutable_key_type)]
    317
        let mut builtins_map = EapiBuiltinsMap::new();
  • poem 1.3.52/src/middleware/sensitive_header.rs
    118
    #[allow(clippy::mutable_key_type)]
    119
    fn set_sensitive(headers: &mut HeaderMap, names: &HashSet<HeaderName>) {
  • prima_bridge 0.14.3/src/request/request_type/rest.rs
    186
        #[allow(clippy::mutable_key_type)] // caused by reqwest::Body
    187
        pub fn multiple(files: HashSet<MultipartFormFileField>) -> Self {
  • psrt 0.1.30/src/pubsub.rs
    269
        }
    270
        #[allow(clippy::mutable_key_type)]
    271
        pub fn get_subscribers(&self, topic: &str) -> BTreeSet<ServerClient> {
  • psrt 0.1.30/src/server.rs
    184
    #[allow(clippy::cast_possible_truncation)]
    185
    #[allow(clippy::mutable_key_type)]
    186
    async fn push_to_subscribers(
    222
    #[allow(clippy::too_many_lines)]
    223
    #[allow(clippy::mutable_key_type)]
    224
    async fn process_control(
    923
    #[allow(clippy::mutable_key_type)]
    924
    async fn process_udp_block(
  • routinator 0.12.1/src/collector/rrdp.rs
    140
        /// Dumps the content of the RRDP collector.
    141
        #[allow(clippy::mutable_key_type)]
    142
        pub fn dump(&self, dir: &Path) -> Result<(), Failed> {
    166
        /// Dumps the content of an RRDP repository.
    167
        #[allow(clippy::mutable_key_type)]
    168
        fn dump_repository(
    211
        /// Dumps the repositories.json.
    212
        #[allow(clippy::mutable_key_type)]
    213
        fn dump_repository_json(
    392
        /// Deletes all RRDP repository trees that are not included in `retain`.
    393
        #[allow(clippy::mutable_key_type)]
    394
        pub fn cleanup(
    423
        /// Cleans up an authority directory.
    424
        #[allow(clippy::mutable_key_type)]
    425
        pub fn cleanup_authority(
  • routinator 0.12.1/src/payload.rs
    1834
        #[test]
    1835
        #[allow(clippy::mutable_key_type)]
    1836
        fn payload_delta_construct() {
  • rtrtr 0.2.2/src/payload.rs
    893
        /// Applies the diff to a set returning a new set.
    894
        #[allow(clippy::mutable_key_type)] // false positive on Payload.
    895
        pub fn apply(&self, set: &Set) -> Result<Set, PayloadError> {
    913
        /// Applies the diff to a set ignoring overlaps and missing items.
    914
        #[allow(clippy::mutable_key_type)] // false positive on Payload.
    915
        pub fn apply_relaxed(&self, set: &Set) -> Set {
    1335
        #[test]
    1336
        #[allow(clippy::mutable_key_type)] // false positive on Payload
    1337
        fn mix_and_match() {
  • rustpad 1.8.0/src/calibrator/mod.rs
    62
            // false positive, the hashmap's key (`response`) is obviously not mutable
    63
            #[allow(clippy::mutable_key_type)]
    64
            let counted_responses = responses.into_iter().fold(
  • safe_network 0.58.13/src/node/core/data/storage/mod.rs
    144
    impl Node {
    145
        #[allow(clippy::mutable_key_type)]
    146
        pub(crate) async fn reorganize_data(
  • sawtooth 0.8.0/src/transact/execution/executor/internal.rs
    339
                                    // ignore clippy error, must match type of ea_senders
    340
                                    #[allow(clippy::mutable_key_type)]
    341
                                    let mut s = HashSet::new();
  • sequoia-openpgp 1.13.0/src/packet/signature.rs
    2574
            // Collect subpackets keeping track of the size.
    2575
            #[allow(clippy::mutable_key_type)]
    2576
            // In general, the keys of a HashSet should not have interior mutability.
  • srv-rs 0.2.0/src/client/policy.rs
    199
        // as a HashMap key but we aren't doing anything naughty in the test
    200
        #[allow(clippy::mutable_key_type)]
    201
        let mut priorities = std::collections::HashMap::new();
  • tari_test_utils 0.8.1/src/streams/mod.rs
    26
    #[allow(dead_code)]
    27
    #[allow(clippy::mutable_key_type)] // Note: Clippy Breaks with Interior Mutability Error
    28
    pub fn get_item_counts<I>(items: I) -> HashMap<I::Item, usize>
  • tonic-web-arcanyx-fork 0.8.1-alpha.1/src/config.rs
    44
        Any,
    45
        #[allow(clippy::mutable_key_type)]
    46
        Only(BTreeSet<HeaderValue>),
    95
            // https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
    96
            #[allow(clippy::mutable_key_type)]
    97
            let origins = origins
  • transact 0.4.6/src/execution/executor/internal.rs
    339
                                    // ignore clippy error, must match type of ea_senders
    340
                                    #[allow(clippy::mutable_key_type)]
    341
                                    let mut s = HashSet::new();
  • x509-certificate 0.18.0/src/certificate.rs
    664
            // storing encountered certificates in a HashSet.
    665
            #[allow(clippy::mutable_key_type)]
    666
            let mut seen = HashSet::new();
  • xh 0.17.0/src/request_items.rs
    256
            let mut headers = HeaderMap::new();
    257
            #[allow(clippy::mutable_key_type)]
    258
            let mut headers_to_unset = HashSet::new();
  • zerogc-context 0.2.0-alpha.7/src/state/sync.rs
    199
                let id = state.next_pending_id();
    200
                #[allow(clippy::mutable_key_type)] // Used for debugging (see below)
    201
                let known_contexts = state.known_contexts.get_mut();
  • authenticator 0.4.0-alpha.7/src/transport/device_selector.rs
    49
        // can't check this.
    50
        #![allow(clippy::mutable_key_type)]
    51
        pub fn run(status: Sender<crate::StatusUpdate>) -> Self {
  • Boa 0.13.1/src/builtins/map/mod.rs
    13
    #![allow(clippy::mutable_key_type)]
  • boringdb 0.4.1/src/dict.rs
    1
    #![allow(clippy::mutable_key_type)]
    2
    use crate::types::BoringResult;
  • clia-ntex-cors 0.2.0/src/lib.rs
    3
        clippy::type_complexity,
    4
        clippy::mutable_key_type
    5
    )]
  • clia-ntex-cors-mod 0.2.0/src/lib.rs
    3
        clippy::type_complexity,
    4
        clippy::mutable_key_type
    5
    )]
  • difftastic 0.42.0/src/parse/syntax.rs
    3
    #![allow(clippy::mutable_key_type)] // Hash for Syntax doesn't use mutable fields.
  • difftastic-lib 0.0.1/src/parse/syntax.rs
    3
    #![allow(clippy::mutable_key_type)] // Hash for Syntax doesn't use mutable fields.
  • difftastic_mod_for_windows 0.27.0/src/syntax.rs
    3
    #![allow(clippy::mutable_key_type)] // Hash for Syntax doesn't use mutable fields.
  • difftastic-oc 0.23.0/src/syntax.rs
    3
    #![allow(clippy::mutable_key_type)] // Hash for Syntax doesn't use mutable fields.
  • hush 0.1.4/src/runtime/mod.rs
    1
    // Hashmaps are used for the dict implementation, which allows mutable keys.
    2
    #![allow(clippy::mutable_key_type)]
  • metrics_cloudwatch 1.0.1/src/lib.rs
    3
    // False positives on `metrics::Key` which uses interior mutability to cache the hash
    4
    #![allow(clippy::mutable_key_type)]
  • mun_memory 0.4.0/src/cast.rs
    1
    #![allow(clippy::mutable_key_type)]
  • ntex-amqp-codec 0.9.0/src/lib.rs
    1
    #![allow(clippy::mutable_key_type, clippy::len_without_is_empty)]
  • ntex-cors 0.1.0/src/lib.rs
    3
        clippy::type_complexity,
    4
        clippy::mutable_key_type
    5
    )]
  • overlord 0.4.2/src/lib.rs
    7
    #![recursion_limit = "512"]
    8
    #![allow(clippy::mutable_key_type)]
  • scutiger-lfs 0.3.0/src/backend.rs
    1
    #![allow(clippy::mutable_key_type)]
  • scutiger-lfs 0.3.0/src/bin/git-lfs-transfer.rs
    4
    #![allow(clippy::match_like_matches_macro)]
    5
    #![allow(clippy::mutable_key_type)]
  • scutiger-lfs 0.3.0/src/processor.rs
    1
    #![allow(clippy::mutable_key_type)]
    2
    #![allow(clippy::match_like_matches_macro)]
  • strife 0.3.0/src/model/utils.rs
    66
        // trait being sealed we can assert it is not.
    67
        #![allow(clippy::mutable_key_type)]
  • syntect 5.0.0/src/parsing/parser.rs
    10
    // See https://github.com/rust-lang/rust/blob/1.54.0/library/core/src/hash/mod.rs#L717-L725
    11
    #![allow(clippy::mutable_key_type)]
  • syntect-no-panic 4.6.1/src/parsing/parser.rs
    10
    // See https://github.com/rust-lang/rust/blob/1.54.0/library/core/src/hash/mod.rs#L717-L725
    11
    #![allow(clippy::mutable_key_type)]
  • themelio-structs 0.3.0-beta.6/src/header.rs
    1
    #![allow(clippy::mutable_key_type)] // false positive from the `bytes` crate
    2
    use std::collections::{BTreeSet, HashSet};
  • vulkano 0.32.3/src/lib.rs
    73
        clippy::module_inception,
    74
        clippy::mutable_key_type,
    75
        clippy::new_without_default,