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);
|
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<_>>();
|
750 |
) -> String {
|
751 |
#[allow(clippy::mutable_key_type)] // False positive lint
|
752 |
let variables = variables
|
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
|
37 |
let token = format!("Bearer {}", token.access_token);
|
38 |
#[allow(clippy::mutable_key_type)]
|
39 |
let headers = std::collections::HashMap::from([
|
247 |
/// Crawl peers.
|
248 |
#[allow(clippy::mutable_key_type)]
|
249 |
pub async fn crawl_peers(
|
29 |
mod plugin;
|
30 |
#[allow(clippy::mutable_key_type)]
|
31 |
mod subcommands;
|
32 |
#[allow(clippy::mutable_key_type)]
|
33 |
mod utils;
|
1 |
mod error;
|
2 |
#[allow(clippy::mutable_key_type)]
|
3 |
mod index;
|
126 |
#[allow(clippy::mutable_key_type)]
|
127 |
pub fn from_both<L: MockResourceLoader>(
|
47 |
) -> Result<TransactionView, TxBuilderError> {
|
48 |
#[allow(clippy::mutable_key_type)]
|
49 |
let mut cell_deps = HashSet::new();
|
60 |
#[allow(clippy::mutable_key_type)]
|
61 |
let mut cell_deps = HashSet::new();
|
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();
|
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();
|
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();
|
35 |
) -> Result<TransactionView, TxBuilderError> {
|
36 |
#[allow(clippy::mutable_key_type)]
|
37 |
let mut cell_deps = HashSet::new();
|
1 |
#[allow(clippy::mutable_key_type)]
|
2 |
pub mod transaction;
|
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(
|
29 |
pub fn new() -> Self {
|
30 |
#[allow(clippy::mutable_key_type)]
|
31 |
let map = HashMap::new();
|
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
|
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
|
101 |
// Extract headers
|
102 |
#[allow(clippy::mutable_key_type)]
|
103 |
let mut headers = HashMap::new();
|
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) {
|
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() {
|
944 |
#[allow(clippy::mutable_key_type)]
|
945 |
let mut bucket_metas: HashMap<Bytes, BucketMeta> = HashMap::new();
|
114 |
#[allow(clippy::mutable_key_type)]
|
115 |
mod bucket;
|
476 |
#[cfg(feature = "matching")]
|
477 |
#[allow(clippy::mutable_key_type)]
|
478 |
pub fn string_matches_one_of(
|
1494 |
#[allow(clippy::mutable_key_type)]
|
1495 |
async fn ca_repo_sync(
|
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(
|
4 |
mod publishers;
|
5 |
#[allow(clippy::mutable_key_type)]
|
6 |
mod repository;
|
29 |
pub fn new() -> Self {
|
30 |
#[allow(clippy::mutable_key_type)]
|
31 |
let map = HashMap::new();
|
769 |
#[allow(clippy::mutable_key_type)]
|
770 |
async fn create_clipboard_channel(
|
192 |
#[allow(clippy::mutable_key_type)]
|
193 |
pub fn env_vars(&self) -> &BTreeMap<Bytes, Bytes> {
|
791 |
) -> Result<protocol::ChannelID, handler::Error> {
|
792 |
#[allow(clippy::mutable_key_type)]
|
793 |
let meta = match &m.meta {
|
109 |
#[allow(clippy::mutable_key_type)]
|
110 |
fn parse_set(pairs: RulePairs) -> SetOf<Filter> {
|
658 |
#[allow(clippy::mutable_key_type)]
|
659 |
impl<'a> CancelSetGenerator<'a> {
|
686 |
) -> String {
|
687 |
#[allow(clippy::mutable_key_type)] // False positive lint
|
688 |
let variables = variables
|
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
|
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();
|
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
|
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)
|
172 |
let mut metrics = vec![];
|
173 |
#[allow(clippy::mutable_key_type)]
|
174 |
let mut reported_counts = HashMap::new();
|
331 |
#[allow(clippy::mutable_key_type)]
|
332 |
fn run_transport(
|
502 |
#[allow(clippy::mutable_key_type)]
|
503 |
fn generate_metadata_messages(
|
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(
|
13 |
#[allow(clippy::mutable_key_type)]
|
14 |
pub fn build_pkcs7(signer: &Signer, encap_content_info: EncapsulatedContentInfo) -> SignedData {
|
1010 |
#[allow(clippy::mutable_key_type)]
|
1011 |
fn map_struct(
|
79 |
impl Mapping {
|
80 |
#[allow(clippy::mutable_key_type)]
|
81 |
pub fn new(old: &[Type], new: &[Type]) -> Self {
|
203 |
#[allow(clippy::mutable_key_type)]
|
204 |
pub fn fields(mut self, fields: protocol::FieldsVec) -> Self {
|
387 |
#[inline]
|
388 |
#[allow(clippy::mutable_key_type)]
|
389 |
fn from_iter<T: IntoIterator<Item = (N, V)>>(iter: T) -> Self {
|
315 |
let static_scopes: Vec<_> = vec![Scope::Global, Scope::Eclass];
|
316 |
#[allow(clippy::mutable_key_type)]
|
317 |
let mut builtins_map = EapiBuiltinsMap::new();
|
118 |
#[allow(clippy::mutable_key_type)]
|
119 |
fn set_sensitive(headers: &mut HeaderMap, names: &HashSet<HeaderName>) {
|
186 |
#[allow(clippy::mutable_key_type)] // caused by reqwest::Body
|
187 |
pub fn multiple(files: HashSet<MultipartFormFileField>) -> Self {
|
269 |
}
|
270 |
#[allow(clippy::mutable_key_type)]
|
271 |
pub fn get_subscribers(&self, topic: &str) -> BTreeSet<ServerClient> {
|
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(
|
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(
|
1834 |
#[test]
|
1835 |
#[allow(clippy::mutable_key_type)]
|
1836 |
fn payload_delta_construct() {
|
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() {
|
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(
|
144 |
impl Node {
|
145 |
#[allow(clippy::mutable_key_type)]
|
146 |
pub(crate) async fn reorganize_data(
|
339 |
// ignore clippy error, must match type of ea_senders
|
340 |
#[allow(clippy::mutable_key_type)]
|
341 |
let mut s = HashSet::new();
|
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.
|
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();
|
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>
|
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
|
339 |
// ignore clippy error, must match type of ea_senders
|
340 |
#[allow(clippy::mutable_key_type)]
|
341 |
let mut s = HashSet::new();
|
664 |
// storing encountered certificates in a HashSet.
|
665 |
#[allow(clippy::mutable_key_type)]
|
666 |
let mut seen = HashSet::new();
|
256 |
let mut headers = HeaderMap::new();
|
257 |
#[allow(clippy::mutable_key_type)]
|
258 |
let mut headers_to_unset = HashSet::new();
|
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();
|
49 |
// can't check this.
|
50 |
#![allow(clippy::mutable_key_type)]
|
51 |
pub fn run(status: Sender<crate::StatusUpdate>) -> Self {
|
13 |
#![allow(clippy::mutable_key_type)]
|
1 |
#![allow(clippy::mutable_key_type)]
|
2 |
use crate::types::BoringResult;
|
3 |
clippy::type_complexity,
|
4 |
clippy::mutable_key_type
|
5 |
)]
|
3 |
clippy::type_complexity,
|
4 |
clippy::mutable_key_type
|
5 |
)]
|
3 |
#![allow(clippy::mutable_key_type)] // Hash for Syntax doesn't use mutable fields.
|
3 |
#![allow(clippy::mutable_key_type)] // Hash for Syntax doesn't use mutable fields.
|
3 |
#![allow(clippy::mutable_key_type)] // Hash for Syntax doesn't use mutable fields.
|
3 |
#![allow(clippy::mutable_key_type)] // Hash for Syntax doesn't use mutable fields.
|
1 |
// Hashmaps are used for the dict implementation, which allows mutable keys.
|
2 |
#![allow(clippy::mutable_key_type)]
|
3 |
// False positives on `metrics::Key` which uses interior mutability to cache the hash
|
4 |
#![allow(clippy::mutable_key_type)]
|
1 |
#![allow(clippy::mutable_key_type)]
|
1 |
#![allow(clippy::mutable_key_type, clippy::len_without_is_empty)]
|
3 |
clippy::type_complexity,
|
4 |
clippy::mutable_key_type
|
5 |
)]
|
7 |
#![recursion_limit = "512"]
|
8 |
#![allow(clippy::mutable_key_type)]
|
1 |
#![allow(clippy::mutable_key_type)]
|
4 |
#![allow(clippy::match_like_matches_macro)]
|
5 |
#![allow(clippy::mutable_key_type)]
|
1 |
#![allow(clippy::mutable_key_type)]
|
2 |
#![allow(clippy::match_like_matches_macro)]
|
66 |
// trait being sealed we can assert it is not.
|
67 |
#![allow(clippy::mutable_key_type)]
|
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)]
|
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)]
|
1 |
#![allow(clippy::mutable_key_type)] // false positive from the `bytes` crate
|
2 |
use std::collections::{BTreeSet, HashSet};
|
73 |
clippy::module_inception,
|
74 |
clippy::mutable_key_type,
|
75 |
clippy::new_without_default,
|