82 |
/// Display the CLI message.
|
83 |
#[allow(clippy::unnecessary_to_owned)]
|
84 |
pub fn print_cli() -> String {
|
110 |
#[allow(unknown_lints)] // for Rust 1.54.0
|
111 |
#[allow(clippy::unnecessary_to_owned)]
|
112 |
&uuid.to_string(),
|
9766 |
);
|
9767 |
#[allow(clippy::unnecessary_to_owned)] // wrongly triggers on into_iter() below
|
9768 |
let allowlist_fns: Vec<String> = TYPES
|
304 |
#[allow(clippy::unnecessary_to_owned)]
|
305 |
iso.set_kargs(&iso.kargs_default()?.to_string())?;
|
367 |
if iso.kargs_supported() {
|
368 |
#[allow(clippy::unnecessary_to_owned)]
|
369 |
iso.set_kargs(&iso.kargs_default()?.to_string())?;
|
130 |
#[allow(clippy::unnecessary_to_owned)]
|
131 |
fn get_routes(
|
101 |
let ch_str = ch.to_string();
|
102 |
#[allow(clippy::unnecessary_to_owned)]
|
103 |
match severity {
|
2257 |
#[allow(clippy::unnecessary_to_owned)] // False positive
|
2258 |
fn copy_node_recursive(
|
2294 |
#[allow(clippy::unnecessary_to_owned)] // False positive
|
2295 |
fn copy_node_recursive_with_limit(
|
526 |
Some(BgFillMethod::Spaces) => panel_line.push_str(
|
527 |
#[allow(clippy::unnecessary_to_owned)]
|
528 |
&fill_style
|
232 |
line.push_str(
|
233 |
#[allow(clippy::unnecessary_to_owned)]
|
234 |
&fill_style
|
366 |
line.push_str(
|
367 |
#[allow(clippy::unnecessary_to_owned)]
|
368 |
&empty_line_style
|
183 |
// at compile-time anyway, so it shouldn't be of much concern.
|
184 |
#[allow(clippy::unnecessary_to_owned)]
|
185 |
fn into_iter(self) -> Self::IntoIter {
|
379 |
/// Responds to input from the user (1 | 2 | 3 | 4).
|
380 |
#[allow(clippy::unnecessary_to_owned)]
|
381 |
pub fn process_input(
|
217 |
// TODO: Remove the lint once this bug in clippy has been fixed. Without to_owned a mutable reference will be aliased.
|
218 |
#[allow(clippy::unnecessary_to_owned)]
|
219 |
fn normalize(mut did: CoreDID) -> CoreDID {
|
528 |
Some(BgFillMethod::Spaces) => panel_line.push_str(
|
529 |
#[allow(clippy::unnecessary_to_owned)]
|
530 |
&fill_style
|
232 |
line.push_str(
|
233 |
#[allow(clippy::unnecessary_to_owned)]
|
234 |
&fill_style
|
366 |
line.push_str(
|
367 |
#[allow(clippy::unnecessary_to_owned)]
|
368 |
&empty_line_style
|
201 |
#[allow(clippy::unnecessary_to_owned)]
|
202 |
fn into_iter(self) -> Self::IntoIter {
|
240 |
alg: "A256CTR".to_owned(),
|
241 |
#[allow(clippy::unnecessary_to_owned)]
|
242 |
k: Base64::new(key.to_vec()),
|
244 |
});
|
245 |
#[allow(clippy::unnecessary_to_owned)]
|
246 |
let encoded_iv = Base64::new(iv.to_vec());
|
18 |
pub(crate) fn register(&mut self, id: &str, type_id: TypeId) -> DoneSignal {
|
19 |
#[allow(clippy::unnecessary_to_owned)]
|
20 |
let fut = Box::pin(platter2::load_file(id.to_string()).map_err(|e| e.to_string()));
|
44 |
#[allow(clippy::unnecessary_to_owned)]
|
45 |
for task in unscheduled_tasks.to_vec() {
|
124 |
} else if copy_operation {
|
125 |
#[allow(clippy::unnecessary_to_owned)]
|
126 |
record.push_field(&record[copy_index].to_vec());
|
926 |
#[allow(clippy::unnecessary_to_owned)]
|
927 |
let stream = tokio::fs::read(file_path.as_ref().to_path_buf())
|
23 |
Err(serde::de::Error::invalid_type(
|
24 |
#[allow(clippy::unnecessary_to_owned)]
|
25 |
Unexpected::Other(&unsafe { self.value.classname() }.into_owned()),
|
49 |
Err(serde::de::Error::invalid_type(
|
50 |
#[allow(clippy::unnecessary_to_owned)]
|
51 |
Unexpected::Other(&unsafe { self.value.classname() }.into_owned()),
|
68 |
Err(serde::de::Error::invalid_type(
|
69 |
#[allow(clippy::unnecessary_to_owned)]
|
70 |
Unexpected::Other(&unsafe { self.value.classname() }.into_owned()),
|
160 |
// TODO: Remove once false positive is resolved
|
161 |
#[allow(clippy::unnecessary_to_owned)]
|
162 |
for entry in self.favorites().to_owned() {
|
332 |
// ensures that it has a static lifetime.
|
333 |
#[allow(clippy::unnecessary_to_owned)]
|
334 |
self.store.scan_prefix(path.as_ref().to_vec())
|
93 |
.flat_map(|coords| {
|
94 |
#[allow(clippy::unnecessary_to_owned)] // I think this one is a clippy bug.
|
95 |
coords
|
1080 |
}
|
1081 |
#[allow(clippy::unnecessary_to_owned)]
|
1082 |
for slice in &[
|
178 |
solution_ctx.routes.iter_mut().for_each(|route_ctx| {
|
179 |
#[allow(clippy::unnecessary_to_owned)]
|
180 |
self.interval_fn.deref()(route_ctx).cloned().unwrap_or_default().into_iter().for_each(|(start_idx, _)| {
|
1 |
#![allow(clippy::unnecessary_to_owned)]
|
2 |
#![allow(clippy::unnecessary_cast)]
|
1 |
#![recursion_limit = "2048"]
|
2 |
#![allow(clippy::should_implement_trait, clippy::unnecessary_to_owned)]
|
3 |
use cpal::{
|
9 |
clippy::search_is_some,
|
10 |
clippy::unnecessary_to_owned,
|
11 |
clippy::needless_range_loop,
|