69 |
#[allow(clippy::map_entry)]
|
70 |
fn try_from(sol: Solution) -> Result<Self, Self::Error> {
|
117 |
#[tracing::instrument(level = "trace", skip(self, tx))]
|
118 |
#[allow(clippy::map_entry)]
|
119 |
pub(super) async fn add_voter(&mut self, id: NodeId, tx: ChangeMembershipTx) {
|
111 |
// there is a `return;` statement for early exit, which is not allowed within the closure.
|
112 |
#[allow(clippy::map_entry)]
|
113 |
fn run(&mut self, (mut net, transport, mut event_channel): Self::SystemData) {
|
118 |
}
|
119 |
#[allow(clippy::map_entry)]
|
120 |
fn set_chunk(&mut self, id: ChunkID, location: SegmentDescriptor) -> Result<()> {
|
41 |
/// ```
|
42 |
#[allow(clippy::map_entry)]
|
43 |
pub fn merge_events_by_keys(events: Vec<Event>, keys: Vec<String>) -> Vec<Event> {
|
18 |
impl Context {
|
19 |
#[allow(clippy::map_entry)]
|
20 |
pub(crate) fn register<'a>(&'a mut self, op: &dyn Operation) -> Result<&'a Node> {
|
21 |
/// Returns true if added successfully, false otherwise.
|
22 |
#[allow(clippy::map_entry)]
|
23 |
pub fn add_key(&mut self, key: AccountHash, weight: Weight) -> Result<(), AddKeyFailure> {
|
45 |
/// Returns true if added successfully, false otherwise.
|
46 |
#[allow(clippy::map_entry)]
|
47 |
pub fn update_key(&mut self, key: AccountHash, weight: Weight) -> Result<(), UpdateKeyFailure> {
|
564 |
let origin = base_url(&origin_url);
|
565 |
#[allow(clippy::map_entry)]
|
566 |
// we can't use entry().or_insert_with() because we can't use async closures
|
592 |
let origin = base_url(&specifier);
|
593 |
#[allow(clippy::map_entry)]
|
594 |
if !self.origins.contains_key(&origin) {
|
264 |
impl<'a> FieldNamesAttributes<'a> {
|
265 |
#[allow(clippy::map_entry)]
|
266 |
fn push(
|
87 |
//? What is its Big O / space-time complexity?
|
88 |
#[allow(clippy::map_entry)]
|
89 |
pub fn build_sparkview_btreemap(&self) -> BTreeMap<String, String> {
|
82 |
#[cfg_attr(feature = "cargo-clippy", allow(map_entry))]
|
83 |
impl<'r> ::ops::UnionWith<&'r super::Vec32> for super::Vec32 {
|
110 |
#[cfg_attr(feature = "cargo-clippy", allow(map_entry))]
|
111 |
impl<'r> ::ops::SymmetricDifferenceWith<&'r super::Vec32> for super::Vec32 {
|
68 |
#[cfg_attr(feature = "cargo-clippy", allow(map_entry))]
|
69 |
impl<'r> UnionWith<&'r super::Vec64> for super::Vec64 {
|
96 |
#[cfg_attr(feature = "cargo-clippy", allow(map_entry))]
|
97 |
impl<'r> SymmetricDifferenceWith<&'r super::Vec64> for super::Vec64 {
|
46 |
#[allow(clippy::map_entry)]
|
47 |
pub fn get_port_receiver(&mut self, port: u8) -> Option<Receiver<Packet>> {
|
74 |
/// * You attempt to register a processor as default, and an existing default exists
|
75 |
#[allow(clippy::map_entry)]
|
76 |
pub fn register<S: Into<String>>(
|
172 |
#[allow(dead_code, clippy::map_entry)]
|
173 |
fn generate_graph(&mut self) {
|
550 |
let origin = base_url(&origin_url);
|
551 |
#[allow(clippy::map_entry)]
|
552 |
// we can't use entry().or_insert_with() because we can't use async closures
|
578 |
let origin = base_url(&specifier);
|
579 |
#[allow(clippy::map_entry)]
|
580 |
if !self.origins.contains_key(&origin) {
|
563 |
let origin = base_url(&origin_url);
|
564 |
#[allow(clippy::map_entry)]
|
565 |
// we can't use entry().or_insert_with() because we can't use async closures
|
591 |
let origin = base_url(&specifier);
|
592 |
#[allow(clippy::map_entry)]
|
593 |
if !self.origins.contains_key(&origin) {
|
550 |
let origin = base_url(&origin_url);
|
551 |
#[allow(clippy::map_entry)]
|
552 |
// we can't use entry().or_insert_with() because we can't use async closures
|
578 |
let origin = base_url(&specifier);
|
579 |
#[allow(clippy::map_entry)]
|
580 |
if !self.origins.contains_key(&origin) {
|
37 |
/// If there is no room in the cache the oldest item will be removed.
|
38 |
#[allow(clippy::map_entry)]
|
39 |
pub fn insert(&mut self, key: K, value: V) -> Option<V> {
|
244 |
#[allow(clippy::map_entry)]
|
245 |
fn merge_configuration_files(
|
229 |
#[allow(clippy::map_entry)]
|
230 |
if !MTCP_CONNECTIONS.lock().contains_key(&addr) {
|
367 |
#[allow(clippy::map_entry)]
|
368 |
if !MTCP_CONNECTIONS.lock().contains_key(&addr) {
|
41 |
/// ```
|
42 |
#[allow(clippy::map_entry)]
|
43 |
pub fn merge_events_by_keys(events: Vec<Event>, keys: Vec<String>) -> Vec<Event> {
|
363 |
let origin = base_url(&Url::parse(origin)?);
|
364 |
#[allow(clippy::map_entry)]
|
365 |
// we can't use entry().or_insert_with() because we can't use async closures
|
281 |
#[allow(clippy::map_entry)]
|
282 |
fn account_mut<B: Backend>(&mut self, address: H160, backend: &B) -> &mut MemoryStackAccount {
|
281 |
#[allow(clippy::map_entry)]
|
282 |
fn account_mut<B: Backend>(&mut self, address: H160, backend: &B) -> &mut MemoryStackAccount {
|
152 |
#[allow(clippy::map_entry)]
|
153 |
fn handle_incoming_messages(
|
35 |
#[allow(clippy::map_entry)]
|
36 |
pub fn push(&mut self, kmer: &[u8], extra_count: u8) {
|
38 |
#[allow(clippy::map_entry)]
|
39 |
pub fn push(&mut self, kmer: &[u8], extra_count: u8) {
|
35 |
#[allow(clippy::map_entry)]
|
36 |
pub fn push(&mut self, kmer: &[u8], extra_count: u8) {
|
38 |
#[allow(clippy::map_entry)]
|
39 |
pub fn push(&mut self, kmer: &[u8], extra_count: u8) {
|
122 |
/// if replica id's doesn't exists, then add, otherwise ignore it
|
123 |
#[allow(clippy::map_entry)]
|
124 |
fn add_follower_replica(&mut self, follower_ids: Vec<SpuId>) {
|
266 |
// systems map while a new system is being created (during which it may reference the system map).
|
267 |
#[allow(clippy::map_entry)]
|
268 |
if !self.inner.systems_mut().contains_key(&system.system_id()) {
|
235 |
/// Returns the calculate_glyph_cache key for this sections glyphs
|
236 |
#[allow(clippy::map_entry)] // further borrows are required after the contains_key check
|
237 |
fn cache_glyphs<L>(&mut self, section: &Section<'_, X>, layout: &L) -> SectionHash
|
70 |
for key in gs.get_anno_storage().annotation_keys()? {
|
71 |
#[allow(clippy::map_entry)]
|
72 |
if !key_id_mapping.contains_key(&key) {
|
259 |
// clone canonical_name in a cold branch. We don't want to do that.
|
260 |
#[allow(clippy::map_entry)]
|
261 |
#[profiling::function]
|
42 |
#[allow(clippy::map_entry)]
|
43 |
fn build(&self, rng: &mut StdRng, map: &Map<D>) -> Map<D> {
|
285 |
// pubkey, return early with a success.
|
286 |
#[allow(clippy::map_entry)]
|
287 |
if self.unwrapped_keys.contains_key(&pubkey) {
|
136 |
#[inline]
|
137 |
#[allow(clippy::map_entry)]
|
138 |
fn insert<T: Into<V>>(&mut self, k: K, v: T) -> Result<(), (K, T)>
|
166 |
// Load the texture if needed
|
167 |
#[allow(clippy::map_entry)]
|
168 |
if !self.textures.contains_key(&texture.id()) {
|
34 |
#[allow(clippy::map_entry)]
|
35 |
fn impl_component_definition(ast: &syn::DeriveInput) -> TokenStream2 {
|
350 |
#[allow(clippy::map_entry)]
|
351 |
fn init_evaluator(&mut self, trial: &NextTrial) -> Result<()> {
|
193 |
#[allow(clippy::map_entry)]
|
194 |
fn ask<R: Rng, G: yamakan::IdGen>(
|
161 |
// can't use entry API because of mutable cache used to create cache entry.
|
162 |
#[allow(clippy::map_entry)]
|
163 |
if !cache.contains_key(&target) {
|
391 |
/// [`Connection`]: struct.Connection.html
|
392 |
#[allow(clippy::map_entry)] // clippy is being dumb
|
393 |
async fn connect(
|
140 |
// TODO: return struct
|
141 |
#[allow(clippy::type_complexity, clippy::map_entry)]
|
142 |
pub fn collect_aliased(&mut self,
|
37 |
#[allow(clippy::map_entry)]
|
38 |
fn build(&self, rng: &mut StdRng, map: &MapBuffer) -> MapBuffer {
|
117 |
/// exist, then nothing will be done.
|
118 |
#[allow(clippy::map_entry)]
|
119 |
fn register_peer(&mut self, peer: &PeerStateMachine) {
|
30 |
#[allow(clippy::map_entry)]
|
31 |
if self.local.contains_key(&key) {
|
275 |
/// Collects function call expression from the given expression.
|
276 |
#[allow(clippy::map_entry)]
|
277 |
pub fn collect_fn_def(&mut self, function: mun_hir::Function) {
|
60 |
/// Original node is appended to history after removed from primary.
|
61 |
#[allow(clippy::map_entry)]
|
62 |
pub(crate) fn append_history(&mut self, node: Node) -> Result<(), Box<dyn std::error::Error>> {
|
80 |
impl super::ImageBackend for SixelBackend {
|
81 |
#[allow(clippy::map_entry)]
|
82 |
fn add_image(&self, lines: Vec<String>, image: &DynamicImage, colors: usize) -> Result<String> {
|
120 |
// then instrumentation libraries.
|
121 |
#[allow(clippy::map_entry)] // caused by https://github.com/rust-lang/rust-clippy/issues/4674
|
122 |
pub(crate) fn sink(metrics: Vec<CheckpointedMetrics>) -> ExportMetricsServiceRequest {
|
476 |
} = &mut *contents;
|
477 |
#[allow(clippy::map_entry)]
|
478 |
if let Some(existing_value) = addresses.get(&key) {
|
506 |
} = self.contents.get_mut();
|
507 |
#[allow(clippy::map_entry)]
|
508 |
if let Some(existing_value) = addresses.get(&key) {
|
535 |
let PressedCambium { addresses, memory } = &mut *contents;
|
536 |
#[allow(clippy::map_entry)]
|
537 |
if let Some(existing_value) = addresses.get(&key) {
|
555 |
let PressedCambium { addresses, memory } = self.contents.get_mut(/* poisoned */);
|
556 |
#[allow(clippy::map_entry)]
|
557 |
if let Some(existing_value) = addresses.get(&key) {
|
14 |
pub fn open_tree(&mut self, sled: &sled::Db, name: &str) -> Result<(), sled::Error> {
|
15 |
#[allow(clippy::map_entry)] // unwrapping errors is much uglier using entry()
|
16 |
if !self.trees_index_by_name.contains_key(name) {
|
270 |
#[cfg_attr(feature = "cargo-clippy", allow(map_entry))]
|
271 |
fn handle_gossip(&mut self, gossip: GossipMessage<T>) {
|
408 |
#[allow(clippy::map_entry)]
|
409 |
#[allow(clippy::cognitive_complexity)]
|
139 |
/// Creates any missing segment writers and sets up connections for them.
|
140 |
#[allow(clippy::map_entry)] // clippy warns about using entry, but async closure is not stable
|
141 |
pub(crate) async fn create_missing_writers(&mut self) {
|
105 |
#[allow(clippy::map_entry)]
|
106 |
impl<'a, N> DefaultContext<'a, N> {
|
259 |
// clone canonical_name in a cold branch. We don't want to do that.
|
260 |
#[allow(clippy::map_entry)]
|
261 |
#[profiling::function]
|
67 |
{
|
68 |
#[allow(clippy::map_entry)]
|
69 |
fn find(&mut self, node: T) -> T {
|
86 |
#[allow(clippy::map_entry)]
|
87 |
if !self.rank.contains_key(&x_root) {
|
91 |
#[allow(clippy::map_entry)]
|
92 |
if !self.rank.contains_key(&y_root) {
|
119 |
#[allow(clippy::map_entry)]
|
120 |
if !result.contains_key(&root) {
|
73 |
/// * You attempt to register a processor as default, and an existing default exists
|
74 |
#[cfg_attr(feature = "cargo-clippy", allow(map_entry))]
|
75 |
pub fn register<S: Into<String>>(
|
88 |
/// ```
|
89 |
#[allow(clippy::map_entry)]
|
90 |
pub fn insert(&mut self, key: K, value: V) -> Option<V> {
|
63 |
let task_id = task.id;
|
64 |
#[allow(clippy::map_entry)]
|
65 |
if !self.waker_cache.contains_key(&task_id) {
|
109 |
/// returns a future that waits the corresponding response.
|
110 |
#[allow(clippy::map_entry)]
|
111 |
pub fn call(
|
240 |
#[allow(clippy::map_entry)]
|
241 |
fn start_transaction(
|
148 |
.try_for_each(|result| -> Result<()> {
|
149 |
#[allow(clippy::map_entry)]
|
150 |
if !map.contains_key(&result.code.to_string()) {
|
220 |
#[allow(clippy::map_entry)]
|
221 |
pub fn act_toggle(&mut self) {
|
239 |
#[allow(clippy::map_entry)]
|
240 |
pub fn act_toggle_all(&mut self) {
|
219 |
#[allow(clippy::map_entry)]
|
220 |
pub fn act_toggle(&mut self) {
|
238 |
#[allow(clippy::map_entry)]
|
239 |
pub fn act_toggle_all(&mut self) {
|
541 |
#[allow(clippy::map_entry)]
|
542 |
fn do_insert_aggregate_operations_across_ancestors(
|
562 |
#[allow(clippy::map_entry)]
|
563 |
fn do_insert_aggregate_operation(
|
86 |
/// analysis which is used for further optimizations
|
87 |
#[allow(clippy::map_entry)]
|
88 |
fn reaching_definitions(cfg: &mut ControlFlowGraph) -> (Vec<Vec<Vec<Transfer>>>, BlockVars) {
|
69 |
// Insert the pointee into the type cache
|
70 |
#[allow(clippy::map_entry)] // Can't use the entry api because of the type_cache borrow later
|
71 |
if !type_cache.contains_key(&pointee_type_die_offset) {
|
290 |
#[allow(clippy::map_entry)]
|
291 |
// Add a relay for listening if it is not already known.
|
42 |
let code_str = code.to_string();
|
43 |
#[allow(clippy::map_entry)]
|
44 |
let var_name = if !self.codes.contains_key(&code_str) {
|
554 |
let origin = base_url(&origin_url);
|
555 |
#[allow(clippy::map_entry)]
|
556 |
// we can't use entry().or_insert_with() because we can't use async closures
|
582 |
let origin = base_url(&specifier);
|
583 |
#[allow(clippy::map_entry)]
|
584 |
if !self.origins.contains_key(&origin) {
|
67 |
/// found, we do not find them again.
|
68 |
#[allow(clippy::map_entry)]
|
69 |
pub(crate) fn find_all_parents(&self, engines: Engines<'_>, index: DeclId) -> Vec<DeclId> {
|
32 |
// Trying to avoiding cloning t unless we're creating a new type.
|
33 |
#[allow(clippy::map_entry)]
|
34 |
if !context.type_map.contains_key(&t) {
|
200 |
#[allow(clippy::map_entry)]
|
201 |
fn refresh_process_specifics(&mut self, pid: Pid, refresh_kind: ProcessRefreshKind) -> bool {
|
99 |
/// reached and the new transaction has a higher priority than the currently stored lowest priority transaction.
|
100 |
#[allow(clippy::map_entry)]
|
101 |
pub fn insert(&mut self, tx: Arc<Transaction>) -> Result<(), UnconfirmedPoolError> {
|
840 |
#[allow(clippy::map_entry)]
|
841 |
async fn restart_all_send_transaction_protocols(
|
74 |
/// * You attempt to register a processor as default, and an existing default exists
|
75 |
#[allow(clippy::map_entry)]
|
76 |
pub fn register<S: Into<String>>(
|
419 |
/// [`TracingEventSender`]: crate::TracingEventSender
|
420 |
#[allow(clippy::missing_panics_doc, clippy::map_entry)] // false positive
|
421 |
pub fn try_receive(&mut self, event: TracingEvent) -> Result<(), ReceiveError> {
|
337 |
#[allow(clippy::map_entry)]
|
338 |
fn push_edge(&mut self, label: String, target: NodeRef) -> Result<(), Err> {
|
46 |
// https://github.com/rust-lang/rust/issues/56167#issuecomment-910742027
|
47 |
#[allow(clippy::map_entry)]
|
48 |
if map.contains_key(&key) {
|
745 |
// Substitute the variables in a multivariate polynomial with univariate polynomials, fast
|
746 |
#[allow(clippy::map_entry)]
|
747 |
#[allow(clippy::type_complexity)]
|
103 |
if let UniNode::Object(src) = src {
|
104 |
#[allow(clippy::map_entry)]
|
105 |
for (key, node) in src {
|
190 |
#[allow(clippy::map_entry)] // allowing for the return values
|
191 |
fn add(&mut self, id: &url::Url, schema: schema::Schema) -> Result<(), schema::SchemaError> {
|
206 |
#[allow(clippy::map_entry)] // allowing for the return values
|
207 |
fn add_and_return<'a>(
|
22 |
/// this way, the original type and size information from the PR is preserved.
|
23 |
#[allow(clippy::map_entry)]
|
24 |
pub async fn changes(auth: &Auth, repo: &Repo, baseref: FromTagBuf, headref: String) -> Result<Changes> {
|
121 |
#[allow(clippy::map_entry)]
|
122 |
fn get_variable(&mut self, name: Token) -> u8 {
|
67 |
let parent_tao = parent.as_form();
|
68 |
#[allow(clippy::map_entry)]
|
69 |
if !backpointers.contains_key(&parent_tao) {
|
708 |
// TODO - Clean this pattern
|
709 |
#[allow(clippy::map_entry)]
|
710 |
let flag = !memory_lookups.contains_key(&implied_expression);
|
2 |
// `_manage_hash` is also used by BTreeMap
|
3 |
clippy::map_entry
|
4 |
)]
|
2 |
// `_manage_hash` is also used by BTreeMap
|
3 |
clippy::map_entry
|
4 |
)]
|
2 |
#![feature(vec_leak, untagged_unions, const_fn, const_fn_union)]
|
3 |
#![allow(unused_unsafe, clippy::wrong_self_convention, clippy::map_entry)]
|
1 |
#![allow(clippy::unused_io_amount)]
|
2 |
#![allow(clippy::map_entry)]
|
1 |
#![allow(clippy::map_entry)]
|
1 |
#![allow(clippy::type_complexity)]
|
2 |
#![allow(clippy::map_entry)]
|
3 |
#![allow(unused_imports)]
|
1 |
#![allow(clippy::map_entry)]
|
12 |
clippy::let_unit_value,
|
13 |
clippy::map_entry,
|
14 |
)]
|
52 |
clippy::or_fun_call,
|
53 |
clippy::map_entry,
|
54 |
clippy::while_let_loop,
|
12 |
clippy::manual_map,
|
13 |
clippy::map_entry
|
14 |
)]
|
21 |
clippy::let_and_return,
|
22 |
clippy::map_entry,
|
23 |
clippy::match_as_ref,
|
1 |
#![allow(clippy::map_entry)]
|