15 |
/// Returns cookie data.
|
16 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
17 |
pub fn cookies(req: HttpRequest<State>) -> Result<Json<Value>> {
|
45 |
/// Set cookies based on the query string params.
|
46 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
47 |
pub fn cookies_set(req: HttpRequest<State>) -> Result<HttpResponse> {
|
63 |
/// Delete cookies based on the query string params.
|
64 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
65 |
pub fn cookies_delete(req: HttpRequest<State>) -> Result<HttpResponse> {
|
9 |
/// Returns a delayed response (max of 10 seconds).
|
10 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
11 |
pub fn delay(info: Path<u64>) -> Box<Future<Item=HttpResponse, Error=error::InternalError<tokio_timer::Error>>> {
|
25 |
/// Returns a generated `UUID4`.
|
26 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
27 |
pub fn uuid(_req: HttpRequest<State>) -> Json<UUID> {
|
33 |
/// Returns base64url-encoded string.
|
34 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
35 |
pub fn base64(info: Path<String>) -> Result<String> {
|
47 |
/// Returns an UTF-8 encoded HTML page.
|
48 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
49 |
pub fn encoding_utf8(req: HttpRequest<State>) -> HttpResponse {
|
55 |
/// Returns a simple XML document.
|
56 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
57 |
pub fn xml(req: HttpRequest<State>) -> HttpResponse {
|
63 |
/// Returns a simple HTML document.
|
64 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
65 |
pub fn html(req: HttpRequest<State>) -> HttpResponse {
|
71 |
/// Returns a simple JSON document.
|
72 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
73 |
pub fn json(_req: HttpRequest<State>) -> Json<Value> {
|
52 |
// a `ShortSlice` must be smaller than a u64.
|
53 |
#[allow(clippy::needless_pass_by_value)]
|
54 |
fn xor_short(buf: ShortSlice<'_>, mask: u64) {
|
319 |
#[allow(clippy::needless_pass_by_value)]
|
320 |
pub(crate) fn integrate_matrix(
|
276 |
// This needs to take ownership of the dynamic tile because it will no longer be valid after this call
|
277 |
#[allow(clippy::needless_pass_by_value)]
|
278 |
pub fn remove_dynamic_tile(&mut self, dynamic_tile: DynamicTile<'_>) {
|
181 |
inner_drop(unsafe { Pin::new_unchecked(self) });
|
182 |
#[allow(clippy::needless_pass_by_value)] // needed for safety reasons
|
183 |
fn inner_drop(this: Pin<&mut InterruptInner>) {
|
229 |
/// returns the old value.
|
230 |
#[allow(clippy::needless_pass_by_value)] // critical for safety
|
231 |
pub fn replace(&self, val: T) -> T {
|
75 |
#[must_use]
|
76 |
#[allow(clippy::needless_pass_by_value)]
|
77 |
pub fn new(changed: Arc<Mutex<HashSet<ListenerId>>>) -> Self {
|
61 |
/// used in [`FromStr`] and [`TryFrom`] implementations
|
62 |
#[allow(clippy::needless_pass_by_value)]
|
63 |
fn try_answer_from_string(ans: String) -> Result<Answer> {
|
109 |
/// used in [`FromStr`] and [`From`] implementations
|
110 |
#[allow(clippy::needless_pass_by_value)]
|
111 |
fn theme_from_string(theme: String) -> Theme {
|
178 |
/// used in [`FromStr`] and [`TryFrom`] implementations
|
179 |
#[allow(clippy::needless_pass_by_value)]
|
180 |
fn try_lang_from_string(lang: String) -> Result<Language> {
|
163 |
#[must_use]
|
164 |
#[allow(clippy::needless_pass_by_value)]
|
165 |
fn handle_error_response(completion: String) -> Error {
|
248 |
#[must_use]
|
249 |
#[allow(clippy::needless_pass_by_value)]
|
250 |
fn parse_response(html: String) -> String {
|
69 |
/// the legend.
|
70 |
#[allow(clippy::needless_pass_by_value)]
|
71 |
#[must_use]
|
86 |
/// the legend.
|
87 |
#[allow(clippy::needless_pass_by_value)]
|
88 |
#[must_use]
|
79 |
/// the legend.
|
80 |
#[allow(clippy::needless_pass_by_value)]
|
81 |
#[must_use]
|
20 |
impl Text {
|
21 |
#[allow(clippy::needless_pass_by_value)]
|
22 |
pub fn new(position: Value, text: impl ToString) -> Self {
|
67 |
/// the legend.
|
68 |
#[allow(clippy::needless_pass_by_value)]
|
69 |
#[must_use]
|
117 |
/// the legend.
|
118 |
#[allow(clippy::needless_pass_by_value)]
|
119 |
#[must_use]
|
65 |
/// Creates a new Ansi from the given foreground color.
|
66 |
#[allow(clippy::needless_pass_by_value)]
|
67 |
#[must_use]
|
77 |
/// Creates a new Ansi from the given background color.
|
78 |
#[allow(clippy::needless_pass_by_value)]
|
79 |
#[must_use]
|
248 |
/// Builder function to set the foreground color.
|
249 |
#[allow(clippy::needless_pass_by_value)]
|
250 |
#[must_use]
|
265 |
/// Builder function to set the background color.
|
266 |
#[allow(clippy::needless_pass_by_value)]
|
267 |
#[must_use]
|
358 |
#[must_use]
|
359 |
#[allow(clippy::needless_pass_by_value)]
|
360 |
pub fn greater_than<T>(self, value: T) -> Comparison
|
385 |
#[must_use]
|
386 |
#[allow(clippy::needless_pass_by_value)]
|
387 |
pub fn greater_or_equal<T>(self, value: T) -> Comparison
|
412 |
#[must_use]
|
413 |
#[allow(clippy::needless_pass_by_value)]
|
414 |
pub fn lesser_than<T>(self, value: T) -> Comparison
|
439 |
#[must_use]
|
440 |
#[allow(clippy::needless_pass_by_value)]
|
441 |
pub fn lesser_or_equal<T>(self, value: T) -> Comparison
|
236 |
// reference is just annoying.
|
237 |
#[allow(clippy::needless_pass_by_value)]
|
238 |
fn ptr_eq<Base, A, B>(a: A, b: B) -> bool
|
20 |
/// Panics with the given assertion information.
|
21 |
#[allow(clippy::needless_pass_by_value)] // necessary so we can use the trait in tests
|
22 |
pub fn panic_on_failed_assertion(expr: impl ExpressionInfo) {
|
281 |
/// Adds an archive to the manifest
|
282 |
#[allow(clippy::needless_pass_by_value)]
|
283 |
fn write_archive(&mut self, archive: StoredArchive) -> Result<()> {
|
48 |
/// get diff of two arbitrary commits
|
49 |
#[allow(clippy::needless_pass_by_value)]
|
50 |
pub fn get_compare_commits_diff(
|
38 |
#[get("/graphql?<request>")]
|
39 |
#[allow(clippy::needless_pass_by_value)]
|
40 |
pub(super) fn query(
|
48 |
#[post("/graphql", data = "<request>")]
|
49 |
#[allow(clippy::needless_pass_by_value)]
|
50 |
pub(super) fn mutate(
|
159 |
/// - If `opts.lookahead_distance` is 0.
|
160 |
#[allow(clippy::needless_pass_by_value)]
|
161 |
pub fn detect_scene_changes<R: Read, T: Pixel>(
|
164 |
#[allow(clippy::too_many_arguments)]
|
165 |
#[allow(clippy::needless_pass_by_value)]
|
166 |
pub fn waveforms_from_files(
|
312 |
#[allow(clippy::too_many_arguments)]
|
313 |
#[allow(clippy::needless_pass_by_value)]
|
314 |
pub fn waveforms_from_files_into_numpys(
|
457 |
#[allow(clippy::too_many_arguments)]
|
458 |
#[allow(clippy::needless_pass_by_value)]
|
459 |
pub fn waveforms_from_files_into_numpys_unwrapped(
|
228 |
)")]
|
229 |
#[allow(clippy::needless_pass_by_value)]
|
230 |
pub fn from_numpy(frame_rate_hz: u32, arr: PyReadonlyArray2<f32>) -> PyResult<Self> {
|
45 |
#[allow(clippy::needless_pass_by_value)]
|
46 |
fn event_sender_thread(state: Arc<State>, permit: Permit) {
|
38 |
#[must_use]
|
39 |
#[allow(clippy::needless_pass_by_value)]
|
40 |
pub fn error_reading_file(e: std::io::Error) -> Self {
|
44 |
#[must_use]
|
45 |
#[allow(clippy::needless_pass_by_value)]
|
46 |
pub fn error_reading_response_body(e: std::io::Error) -> Self {
|
50 |
#[must_use]
|
51 |
#[allow(clippy::needless_pass_by_value)]
|
52 |
pub fn error_saving_file(e: std::io::Error) -> Self {
|
198 |
#[allow(clippy::needless_pass_by_value)]
|
199 |
#[must_use]
|
178 |
#[must_use]
|
179 |
#[allow(clippy::needless_pass_by_value)]
|
180 |
pub fn connect(e: std::io::Error) -> Self {
|
183 |
#[must_use]
|
184 |
#[allow(clippy::needless_pass_by_value)]
|
185 |
pub fn write(e: std::io::Error) -> Self {
|
187 |
}
|
188 |
#[allow(clippy::needless_pass_by_value)]
|
189 |
#[must_use]
|
35 |
#[allow(clippy::needless_pass_by_value)]
|
36 |
fn tween_transforms(time: Res<Time>, mut targets: Query<(&Tween<Transform>, &mut Transform)>) {
|
31 |
#[allow(clippy::needless_pass_by_value)]
|
32 |
#[allow(clippy::type_complexity)]
|
43 |
#[allow(clippy::needless_pass_by_value)]
|
44 |
fn update_cursor(window: Res<Windows>, mut cursor: ResMut<Cursor>) {
|
22 |
#[allow(clippy::needless_pass_by_value)]
|
23 |
#[allow(clippy::too_many_arguments)]
|
88 |
#[allow(clippy::needless_pass_by_value)]
|
89 |
#[allow(clippy::too_many_arguments)]
|
161 |
#[allow(clippy::too_many_arguments)]
|
162 |
#[allow(clippy::needless_pass_by_value)]
|
163 |
pub fn interactive<T: Interactive + Component>(
|
110 |
#[allow(clippy::needless_pass_by_value)]
|
111 |
fn handle_combine(
|
62 |
#[allow(clippy::needless_pass_by_value)]
|
63 |
fn run_hooks(
|
240 |
#[allow(clippy::needless_pass_by_value)]
|
241 |
fn cleanup_scene(
|
50 |
/// The value is converted to a string, so it must implement `ToString`.
|
51 |
#[allow(clippy::needless_pass_by_value)]
|
52 |
pub fn insert<T: ToString>(&mut self, key: &str, value: T) {
|
168 |
#[allow(clippy::needless_pass_by_value)]
|
169 |
fn plot_diagnostics_system(
|
46 |
/// Get the DSP source given a DSP graph.
|
47 |
#[allow(clippy::needless_pass_by_value)]
|
48 |
pub fn get_graph<D: DspGraph>(&self, dsp_graph: D) -> Option<&DspSource> {
|
41 |
#[allow(clippy::needless_pass_by_value)]
|
42 |
pub fn handle_cells<C, S>(
|
76 |
#[allow(clippy::needless_pass_by_value)]
|
77 |
pub fn handle_new_cells<C>(query: Query<(Entity, &C), Added<C>>, mut map: ResMut<CellMap<C>>)
|
4 |
#[allow(clippy::needless_pass_by_value)]
|
5 |
pub fn color_sprites<S>(
|
123 |
/// System to play queued spatial audio in [`Audio`].
|
124 |
#[allow(clippy::needless_pass_by_value, clippy::missing_panics_doc)]
|
125 |
pub fn play_queued_spatial_audio<Source>(
|
157 |
/// System to play queued spatial buffered audio in [`Audio`].
|
158 |
#[allow(clippy::needless_pass_by_value, clippy::missing_panics_doc)]
|
159 |
pub fn play_queued_spatial_buffered_audio<Source>(
|
97 |
/// System to play queued audio in [`Audio`].
|
98 |
#[allow(clippy::needless_pass_by_value, clippy::missing_panics_doc)]
|
99 |
pub fn play_queued_audio<const N: usize, F, Source>(
|
27 |
#[allow(clippy::needless_pass_by_value)]
|
28 |
pub fn debug_draw_sticks(
|
18 |
#[allow(clippy::needless_pass_by_value, clippy::cast_possible_truncation)]
|
19 |
pub fn update_points(
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
2 |
use crate::components::{VerletLocked, VerletPoint, VerletStick};
|
8 |
clippy::type_complexity,
|
9 |
clippy::needless_pass_by_value,
|
10 |
clippy::similar_names
|
77 |
// Lint: Non-consumed argument is required to match the API.
|
78 |
#[allow(clippy::needless_pass_by_value)]
|
79 |
pub fn separated<R: Read + Seek>(
|
105 |
// Lint: Non-consumed argument is required to match the API.
|
106 |
#[allow(clippy::needless_pass_by_value)]
|
107 |
pub fn separated_trailing<R: Read + Seek>(
|
719 |
/// Convert the given ndarray of boolean flags to an ndarray of float weights
|
720 |
#[allow(clippy::needless_pass_by_value)]
|
721 |
pub fn flag_to_weight_array<D>(flag_array: ArrayView<bool, D>, weight_factor: f64) -> Array<f32, D>
|
70 |
/// [spec]: https://tc39.es/ecma262/#sec-arguments-exotic-objects-defineownproperty-p-desc
|
71 |
#[allow(clippy::needless_pass_by_value)]
|
72 |
pub(crate) fn arguments_exotic_define_own_property(
|
175 |
#[inline]
|
176 |
#[allow(clippy::needless_pass_by_value)]
|
177 |
pub(crate) fn global_define_own_property(
|
232 |
#[inline]
|
233 |
#[allow(clippy::needless_pass_by_value)]
|
234 |
pub(crate) fn global_get(
|
279 |
#[inline]
|
280 |
#[allow(clippy::needless_pass_by_value)]
|
281 |
pub(crate) fn global_set(
|
279 |
/// Will normally never panic, unless the session identifier returned by the bofhd server is in an invalid format.
|
280 |
#[allow(clippy::needless_pass_by_value)]
|
281 |
pub fn login(
|
44 |
#[allow(clippy::needless_pass_by_value)]
|
45 |
pub fn open_trees_for_document_change(
|
1241 |
#[allow(clippy::needless_pass_by_value)]
|
1242 |
fn assert_result(
|
22 |
/// ```
|
23 |
#[allow(clippy::needless_pass_by_value)]
|
24 |
pub fn register_palette_color<S: ToString, COLOR: Into<RGBA>>(name: S, color: COLOR) {
|
42 |
#[allow(clippy::module_name_repetitions)]
|
43 |
#[allow(clippy::needless_pass_by_value)]
|
44 |
pub fn palette_color<S: ToString>(name: S) -> Option<RGBA> {
|
77 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
78 |
fn err_bincode_to_io(e: Box<bincode::ErrorKind>) -> io::Error {
|
91 |
#[allow(clippy::needless_pass_by_value)]
|
92 |
fn from_header<H: Hasher>(_hasher: H) -> Result<H, ()> {
|
95 |
#[allow(clippy::needless_pass_by_value)]
|
96 |
fn from_header<H: Hasher>(_hasher: H) -> Result<H, ()> {
|
17 |
#[allow(clippy::needless_pass_by_value)] // Needed for type deduction
|
18 |
fn split_aliases(input: String) -> Vec<String> {
|
1086 |
#[allow(clippy::needless_pass_by_value)]
|
1087 |
fn nop_error_handler(_err: MetricError) {
|
31 |
// there's no point in changing this to be pass by reference yet.
|
32 |
#[allow(clippy::needless_pass_by_value)]
|
33 |
fn get_addr<A: ToSocketAddrs>(addr: A) -> MetricResult<SocketAddr> {
|
1093 |
#[allow(clippy::needless_pass_by_value)]
|
1094 |
fn nop_error_handler(_err: MetricError) {
|
31 |
// there's no point in changing this to be pass by reference yet.
|
32 |
#[allow(clippy::needless_pass_by_value)]
|
33 |
fn get_addr<A: ToSocketAddrs>(addr: A) -> MetricResult<SocketAddr> {
|
17 |
/// Arithmetic instructions
|
18 |
#[allow(clippy::needless_pass_by_value, clippy::enum_glob_use)]
|
19 |
pub mod arith;
|
22 |
/// I/O, debugging, function call and return instructions
|
23 |
#[allow(clippy::needless_pass_by_value, clippy::enum_glob_use)]
|
24 |
pub mod io;
|
27 |
/// Instructions for moving data between registers and memory addresses
|
28 |
#[allow(clippy::needless_pass_by_value, clippy::enum_glob_use)]
|
29 |
pub mod mov;
|
32 |
/// Instructions for making logical comparisons
|
33 |
#[allow(clippy::needless_pass_by_value, clippy::enum_glob_use)]
|
34 |
pub mod cmp;
|
37 |
/// Instructions for logical bit manipulation
|
38 |
#[allow(clippy::needless_pass_by_value, clippy::enum_glob_use)]
|
39 |
pub mod bitman;
|
110 |
#[allow(clippy::enum_glob_use, clippy::needless_pass_by_value)]
|
111 |
fn run(
|
160 |
#[allow(clippy::enum_glob_use, clippy::needless_pass_by_value)]
|
161 |
fn compile(
|
171 |
#[must_use]
|
172 |
#[allow(clippy::needless_pass_by_value)]
|
173 |
pub fn card_from_string(index: String) -> Card {
|
125 |
#[allow(clippy::needless_pass_by_value)]
|
126 |
fn valid(result: Result<Validation, CustomUserError>) -> bool {
|
130 |
#[allow(clippy::needless_pass_by_value)]
|
131 |
fn invalid(result: Result<Validation, CustomUserError>) -> bool {
|
936 |
#[allow(clippy::needless_pass_by_value)]
|
937 |
fn new_with_variant(variant: TestRepoVariant) -> Self {
|
312 |
#[allow(clippy::needless_pass_by_value)]
|
313 |
pub fn merge_options(
|
25 |
#[allow(clippy::needless_pass_by_value)]
|
26 |
fn to_issue(&self, vulnerability: Vulnerability) -> sonar::Issue {
|
41 |
#[allow(clippy::needless_pass_by_value)]
|
42 |
fn to_issue(&self, crate_name: &str, metadata: Metadata) -> sonar::Issue {
|
72 |
#[allow(clippy::needless_pass_by_value)]
|
73 |
fn to_issues(&self, outcome: Outcome) -> sonar::Issues {
|
126 |
#[allow(clippy::needless_pass_by_value)]
|
127 |
fn serialize_rotated(r: Rotated) -> String {
|
162 |
#[allow(clippy::needless_pass_by_value)] // raw property
|
163 |
pub(crate) fn from_raw(raw: RawProperty) -> Property {
|
19 |
#[allow(clippy::needless_pass_by_value)]
|
20 |
fn san_may_error(&mut self, san_plus: SanPlus) -> Result<(), GameEncodeError> {
|
45 |
#[allow(clippy::needless_pass_by_value)]
|
46 |
fn san(&mut self, san_plus: SanPlus) {
|
228 |
/// as all possible output fits in the range of `Duration`.
|
229 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
230 |
#[inline]
|
229 |
/// This does not overflow or underflow at all.
|
230 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
231 |
#[inline]
|
228 |
/// as all possible output fits in the range of `Duration`.
|
229 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
230 |
#[inline]
|
229 |
/// This does not overflow or underflow at all.
|
230 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
231 |
#[inline]
|
427 |
#[allow(clippy::needless_pass_by_value)]
|
428 |
#[quickcheck]
|
74 |
fn test_before_event_callback_drop() {
|
75 |
#[allow(clippy::needless_pass_by_value)]
|
76 |
fn before_send(
|
100 |
fn test_before_breadcrumb_callback_drop() {
|
101 |
#[allow(clippy::needless_pass_by_value)]
|
102 |
fn before_breadcrumb(_crumb: sentry::Breadcrumb) -> Option<sentry::Breadcrumb> {
|
185 |
/// Sets a tag to a specific value.
|
186 |
#[allow(clippy::needless_pass_by_value)]
|
187 |
pub fn set_tag<V: ToString>(&mut self, key: &str, value: V) {
|
80 |
/// Run the program.
|
81 |
#[allow(clippy::needless_pass_by_value)]
|
82 |
pub fn run<A, O, F, E>(version: Version, app: A)
|
59 |
#[allow(clippy::unnecessary_wraps)]
|
60 |
#[allow(clippy::needless_pass_by_value)]
|
61 |
#[allow(clippy::unused_async)]
|
596 |
#[quickcheck]
|
597 |
#[allow(clippy::needless_pass_by_value)]
|
598 |
fn id_try_from_slice(values: Vec<u8>) -> bool {
|
26 |
/// Create a new Cell
|
27 |
#[allow(clippy::needless_pass_by_value)]
|
28 |
pub fn new<T: ToString>(content: T) -> Self {
|
105 |
// - arguments: (`Vec<String>`) - a Vector of ordered String items
|
106 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
107 |
fn new_with_vec(arguments: Vec<String>) -> Self {
|
415 |
/// ```
|
416 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
417 |
pub fn contains_sequence(&self, needle_vec: Vec<&str>) -> bool {
|
4102 |
/// Generate a string from a parsing error. Probably deprecated
|
4103 |
#[allow(clippy::needless_pass_by_value)]
|
4104 |
pub fn decode_parsing_error(_orig: &str, _e: cpclib_common::nom::Err<&str>) -> String {
|
154 |
/// Convert a `serde_cbor::Value` into a type `T`
|
155 |
#[allow(clippy::needless_pass_by_value)]
|
156 |
pub fn from_value<T>(value: Value) -> Result<T, crate::error::Error>
|
435 |
/// ```
|
436 |
#[allow(clippy::needless_pass_by_value)]
|
437 |
// Taking by value is more friendly to iterator adapters, option and result
|
114 |
#[allow(clippy::needless_pass_by_value)]
|
115 |
#[post("/registeradmin", data = "<admin_data>")]
|
139 |
#[allow(clippy::needless_pass_by_value)]
|
140 |
#[post("/demo", data = "<body>")]
|
462 |
/// returns the displayed characters per field
|
463 |
#[allow(unknown_lints, clippy::needless_pass_by_value)]
|
464 |
fn get_field_length(&self, field: Field) -> usize {
|
185 |
/// ```
|
186 |
#[allow(clippy::needless_pass_by_value)]
|
187 |
pub unsafe fn from_raw_parts(ptr: DevicePointer<T>, len: usize) -> DeviceSlice<T> {
|
253 |
#[inline(always)]
|
254 |
#[allow(clippy::needless_pass_by_value)]
|
255 |
pub fn debug_for(self, input: MaybeString<'_>) -> DebugFor<'_> {
|
85 |
#[inline(always)]
|
86 |
#[allow(clippy::needless_pass_by_value)]
|
87 |
pub fn from_utf8<E>(utf8: Bytes<'i>) -> Result<String<'i>, E>
|
1043 |
fn try_from(value: Value) -> Result<Self, Self::Error> {
|
1044 |
#[allow(clippy::needless_pass_by_value)] // makes it easier to use later on
|
1045 |
fn value_to_aif_element(
|
83 |
// TODO: HEAD support
|
84 |
#[allow(clippy::needless_pass_by_value)]
|
85 |
pub fn status(req: HttpRequest<AppState>) -> Json<Option<Job>> {
|
105 |
/// Creates and starts a new job if the system is ready.
|
106 |
#[allow(clippy::needless_pass_by_value)]
|
107 |
pub fn start(req: HttpRequest<AppState>) -> Box<Future<Item = HttpResponse, Error = Error>> {
|
168 |
#[allow(clippy::needless_pass_by_value)]
|
169 |
fn message_uuid(
|
188 |
/// We require the user to specify the job in question so that there can be no ambiguity.
|
189 |
#[allow(clippy::needless_pass_by_value)]
|
190 |
pub fn resume(
|
197 |
/// Immediately stops the running job.
|
198 |
#[allow(clippy::needless_pass_by_value)]
|
199 |
pub fn halt(
|
18 |
#[allow(clippy::module_name_repetitions)]
|
19 |
#[allow(clippy::needless_pass_by_value)]
|
20 |
pub fn unpack(
|
476 |
#[allow(clippy::needless_pass_by_value)]
|
477 |
fn handle_error<E: Display, T>(error: E) -> T {
|
60 |
/// ```
|
61 |
#[allow(clippy::needless_pass_by_value)]
|
62 |
#[inline]
|
121 |
/// ```
|
122 |
#[allow(clippy::needless_pass_by_value)]
|
123 |
#[inline]
|
36 |
/// Initializes the thread system and returns a set of thread tokens.
|
37 |
#[allow(clippy::needless_pass_by_value)]
|
38 |
#[inline]
|
95 |
/// Create a new error with the given cause.
|
96 |
#[allow(clippy::needless_pass_by_value)] // `T: ToString` implies `&T: ToString`
|
97 |
#[track_caller]
|
206 |
#[inline]
|
207 |
#[allow(clippy::needless_pass_by_value)] // `T: ToString` implies `&T: ToString`
|
208 |
#[track_caller]
|
177 |
#[cfg(not(target_arch = "wasm32"))]
|
178 |
#[allow(clippy::needless_pass_by_value)]
|
179 |
pub fn run_native(app_name: &str, native_options: NativeOptions, app_creator: AppCreator) {
|
163 |
#[cfg(not(target_arch = "wasm32"))]
|
164 |
#[allow(clippy::needless_pass_by_value)]
|
165 |
pub fn run_native(app_name: &str, native_options: NativeOptions, app_creator: AppCreator) {
|
400 |
#[allow(clippy::needless_pass_by_value)] // intentional to swallow up `content_ui`.
|
401 |
pub(crate) fn end(self, ctx: &Context, content_ui: Ui) -> Response {
|
170 |
impl OpenUrl {
|
171 |
#[allow(clippy::needless_pass_by_value)]
|
172 |
pub fn same_tab(url: impl ToString) -> Self {
|
179 |
#[allow(clippy::needless_pass_by_value)]
|
180 |
pub fn new_tab(url: impl ToString) -> Self {
|
497 |
#[allow(clippy::needless_pass_by_value)]
|
498 |
pub fn labeled(typ: WidgetType, label: impl ToString) -> Self {
|
505 |
/// checkboxes, radio-buttons etc
|
506 |
#[allow(clippy::needless_pass_by_value)]
|
507 |
pub fn selected(typ: WidgetType, selected: bool, label: impl ToString) -> Self {
|
522 |
#[allow(clippy::needless_pass_by_value)]
|
523 |
pub fn slider(value: f64, label: impl ToString) -> Self {
|
208 |
impl Painter {
|
209 |
#[allow(clippy::needless_pass_by_value)]
|
210 |
pub fn debug_rect(&self, rect: Rect, color: Color32, text: impl ToString) {
|
231 |
/// text with a background
|
232 |
#[allow(clippy::needless_pass_by_value)]
|
233 |
pub fn debug_text(
|
381 |
/// Returns where the text ended up.
|
382 |
#[allow(clippy::needless_pass_by_value)]
|
383 |
pub fn text(
|
52 |
/// Creates a button with an image to the left of the text. The size of the image as displayed is defined by the provided size.
|
53 |
#[allow(clippy::needless_pass_by_value)]
|
54 |
pub fn image_and_text(
|
352 |
#[allow(clippy::needless_pass_by_value)]
|
353 |
fn x_grid(input: GridInput) -> Vec<GridMark> {
|
713 |
/// ignored.
|
714 |
#[allow(clippy::needless_pass_by_value)] // false positive
|
715 |
pub fn register_native_texture_with_sampler_options(
|
592 |
#[allow(clippy::needless_pass_by_value)] // False positive
|
593 |
pub fn register_native_texture(&mut self, native: glow::Texture) -> egui::TextureId {
|
601 |
#[allow(clippy::needless_pass_by_value)] // False positive
|
602 |
pub fn replace_native_texture(&mut self, id: egui::TextureId, replacing: glow::Texture) {
|
29 |
impl VertexArrayObject {
|
30 |
#[allow(clippy::needless_pass_by_value)] // false positive
|
31 |
pub(crate) unsafe fn new(
|
646 |
#[allow(clippy::needless_pass_by_value)] // False positive
|
647 |
pub fn register_native_texture(&mut self, native: glow::Texture) -> egui::TextureId {
|
655 |
#[allow(clippy::needless_pass_by_value)] // False positive
|
656 |
pub fn replace_native_texture(&mut self, id: egui::TextureId, replacing: glow::Texture) {
|
29 |
impl VertexArrayObject {
|
30 |
#[allow(clippy::needless_pass_by_value)] // false positive
|
31 |
pub(crate) unsafe fn new(
|
656 |
/// ignored.
|
657 |
#[allow(clippy::needless_pass_by_value)] // false positive
|
658 |
pub fn register_native_texture_with_sampler_options(
|
696 |
/// This allows applications to reuse `TextureId`s created with custom sampler options.
|
697 |
#[allow(clippy::needless_pass_by_value)] // false positive
|
698 |
pub fn update_egui_texture_from_wgpu_texture_with_sampler_options(
|
16 |
/// Create a `GET` request with the given url.
|
17 |
#[allow(clippy::needless_pass_by_value)]
|
18 |
pub fn get(url: impl ToString) -> Self {
|
27 |
/// Create a `POST` request with the given url and body.
|
28 |
#[allow(clippy::needless_pass_by_value)]
|
29 |
pub fn post(url: impl ToString, body: Vec<u8>) -> Self {
|
42 |
// we're mirroring how macro signatures look
|
43 |
#[allow(clippy::needless_pass_by_value)]
|
44 |
#[must_use]
|
12 |
// we're mirroring how macro signatures look
|
13 |
#[allow(clippy::needless_pass_by_value)]
|
14 |
#[must_use]
|
30 |
// we're mirroring how macro signatures look
|
31 |
#[allow(clippy::needless_pass_by_value)]
|
32 |
#[must_use]
|
40 |
// we're mirroring how macro signatures look
|
41 |
#[allow(clippy::needless_pass_by_value)]
|
42 |
#[must_use]
|
11 |
// we're mirroring how macro signatures look
|
12 |
#[allow(clippy::needless_pass_by_value)]
|
13 |
#[must_use]
|
26 |
/// ```
|
27 |
#[allow(clippy::needless_pass_by_value)]
|
28 |
pub fn get_or_set_default<R>(key: &str, default: R) -> Result<R, Error>
|
113 |
/// ```
|
114 |
#[allow(clippy::needless_pass_by_value)]
|
115 |
pub fn sset<V>(key: &str, value: V) -> EString
|
28 |
/// Will return `Err` if there was a problem writing the data.
|
29 |
#[allow(clippy::needless_pass_by_value)]
|
30 |
#[inline]
|
202 |
#[allow(clippy::needless_pass_by_value)]
|
203 |
pub fn text(
|
52 |
// a `ShortSlice` must be smaller than a u64.
|
53 |
#[allow(clippy::needless_pass_by_value)]
|
54 |
fn xor_short(buf: ShortSlice<'_>, mask: u64) {
|
145 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
146 |
pub fn require_to_commit(&self, require: RequireError, root: Option<H256>) -> AccountCommitment {
|
145 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
146 |
pub fn require_to_commit(&self, require: RequireError, root: Option<H256>) -> AccountCommitment {
|
547 |
/// [`PersistentPool`]: struct.PersistentPool.html
|
548 |
#[allow(clippy::needless_pass_by_value)]
|
549 |
// ^-- `BlockParams` is passed by value for future compatibility.
|
114 |
/// Deserializes `semver::Version` from string.
|
115 |
#[allow(clippy::needless_pass_by_value)] // False positive, we need a `String` type here.
|
116 |
pub fn from_pb(pb: String) -> anyhow::Result<Version> {
|
184 |
#[allow(clippy::needless_pass_by_value)] // required for work with `protobuf_convert(with)`
|
185 |
impl ArtifactId {
|
716 |
#[allow(clippy::needless_pass_by_value)] // required for work with `protobuf_convert(with)`
|
717 |
pub fn from_pb(pb: String) -> anyhow::Result<Option<Version>> {
|
54 |
/// ```
|
55 |
#[allow(clippy::needless_pass_by_value)]
|
56 |
pub fn into_x25519_keypair(
|
455 |
fn list_index_clear_in_family(db: &dyn Database, x: u32, y: u32, merge_before_clear: bool) {
|
456 |
#[allow(clippy::needless_pass_by_value)]
|
457 |
// ^-- better for type inference: we want `T == &Fork`, not `T == Fork`.
|
603 |
#[allow(clippy::needless_pass_by_value)] // references to ranges look awkward
|
604 |
fn check_bounds(
|
52 |
#[allow(clippy::needless_pass_by_value)] // required by `exonum-proto`
|
53 |
pub fn from_pb(pb: String) -> anyhow::Result<VersionReq> {
|
169 |
/// Converts Ed25519 keypair to Curve25519 keypair.
|
170 |
#[allow(clippy::needless_pass_by_value)]
|
171 |
pub fn convert_ed_keypair_to_curve25519(pk: PublicKey, sk: SecretKey) -> (PublicKey, SecretKey) {
|
206 |
#[cfg(not(target_arch = "wasm32"))]
|
207 |
#[allow(clippy::needless_pass_by_value)]
|
208 |
unsafe fn insert_externref(id: ExternRef) -> usize {
|
250 |
#[inline(always)]
|
251 |
#[allow(clippy::needless_pass_by_value)]
|
252 |
pub unsafe fn take_raw(this: Option<Self>) -> ExternRef {
|
98 |
/// Gather unconditional and conditional rules to be provided to the seccomp context.
|
99 |
#[allow(clippy::needless_pass_by_value)]
|
100 |
fn gather_rules(rules: impl RuleSet) -> Vec<Rule> {
|
26 |
/// internal helper to convert [`reqwest::Error`] to [`FeroxFuzzError`]
|
27 |
#[allow(clippy::needless_pass_by_value)]
|
28 |
#[instrument(skip_all, level = "trace")]
|
221 |
// I'm pretty sure this shouldn't capture from elem_query, so this is probably a bug in Soup
|
222 |
#[allow(clippy::needless_pass_by_value)]
|
223 |
fn find(html: HtmlNode, elem_query: &ElementQuery) -> impl Iterator<Item = HtmlNode> + '_ {
|
125 |
// pass by value because we don't want dangling pointers :)
|
126 |
#[allow(clippy::needless_pass_by_value)]
|
127 |
pub fn append(&mut self, other: Self) {
|
280 |
/// ```
|
281 |
#[allow(clippy::needless_pass_by_value)]
|
282 |
pub unsafe fn from_raw_parts<'a>(data: DevicePointer<T>, len: usize) -> &'a DeviceSlice<T> {
|
183 |
#[allow(clippy::needless_pass_by_value)] // channel is designed to be used like this
|
184 |
fn server(
|
56 |
#[allow(clippy::needless_pass_by_value)] // because it is run in other thread
|
57 |
fn keyboard_event_generator(tick_interval: Duration, tx: mpsc::Sender<CTResult<TerminalEvent>>) {
|
94 |
#[allow(clippy::needless_pass_by_value)]
|
95 |
fn iter_op<S: AsRef<str>>(
|
4 |
impl Formula<'_> {
|
5 |
#[allow(clippy::needless_pass_by_value, clippy::unnecessary_wraps)]
|
6 |
pub(crate) fn parse_num(pair: Pair<Rule>) -> Result<Expr> {
|
26 |
#[allow(clippy::needless_pass_by_value, clippy::unnecessary_wraps)]
|
27 |
pub(crate) fn parse_true(_pair: Pair<Rule>) -> Result<Expr> {
|
31 |
#[allow(clippy::needless_pass_by_value, clippy::unnecessary_wraps)]
|
32 |
pub(crate) fn parse_false(_pair: Pair<Rule>) -> Result<Expr> {
|
36 |
#[allow(clippy::needless_pass_by_value, clippy::unnecessary_wraps)]
|
37 |
pub(crate) fn parse_array(pair: Pair<Rule>) -> Result<Expr> {
|
5 |
impl Formula<'_> {
|
6 |
#[allow(clippy::needless_pass_by_value, clippy::unnecessary_wraps)]
|
7 |
pub(crate) fn parse_now(_pair: Pair<Rule>) -> Result<Expr> {
|
11 |
#[allow(clippy::needless_pass_by_value, clippy::unnecessary_wraps)]
|
12 |
pub(crate) fn parse_today(_pair: Pair<Rule>) -> Result<Expr> {
|
30 |
#[allow(clippy::needless_pass_by_value)]
|
31 |
pub(crate) fn parse_weeknum(pair: Pair<Rule>) -> Result<Expr> {
|
176 |
#[allow(clippy::needless_pass_by_value, clippy::unnecessary_wraps)]
|
177 |
pub(crate) fn parse_pi(_pair: Pair<Rule>) -> Result<Expr> {
|
267 |
#[allow(clippy::needless_pass_by_value, clippy::unnecessary_wraps)]
|
268 |
pub(crate) fn parse_rand(_pair: Pair<Rule>) -> Result<Expr> {
|
18 |
#[allow(clippy::needless_pass_by_value)]
|
19 |
pub(crate) fn parse_filterxml(pair: Pair<Rule>) -> Result<Expr> {
|
90 |
#[allow(clippy::needless_pass_by_value)]
|
91 |
fn validate_date(s: String) -> Result<(), String> {
|
59 |
impl SegmentGc {
|
60 |
#[allow(clippy::needless_pass_by_value, clippy::too_many_arguments)]
|
61 |
pub fn new(
|
122 |
/// repair_idleness_threshold の変更要求を発行する。
|
123 |
#[allow(clippy::needless_pass_by_value)]
|
124 |
pub fn set_repair_config(&mut self, repair_config: RepairConfig) {
|
550 |
}
|
551 |
#[allow(clippy::needless_pass_by_value)]
|
552 |
fn handle_command(&mut self, command: SegmentNodeCommand) {
|
165 |
/// Boots this cluster with the given members.
|
166 |
#[allow(clippy::needless_pass_by_value)]
|
167 |
pub fn boot(&mut self, members: Vec<(NodeId, DeviceId, DeviceHandle)>) -> Result<Client> {
|
165 |
#[allow(clippy::needless_pass_by_value)]
|
166 |
fn root_worker_thread(tasks: Receiver<TreeNode>) -> Result<(), Error> {
|
144 |
#[allow(clippy::needless_pass_by_value)]
|
145 |
fn root_worker_thread(tasks: Receiver<Message>) -> Result<(), Error> {
|
44 |
#[must_use]
|
45 |
#[allow(clippy::needless_pass_by_value)]
|
46 |
pub fn from_index_string(index: String) -> Result<PokerCards, HandError> {
|
8 |
impl UCI {
|
9 |
#[allow(clippy::missing_panics_doc, clippy::needless_pass_by_value)]
|
10 |
#[must_use]
|
104 |
/// ```
|
105 |
#[allow(clippy::needless_pass_by_value)]
|
106 |
pub fn new_from_pos(variant: ErrorVariant<R>, pos: Position) -> Error<R> {
|
145 |
/// ```
|
146 |
#[allow(clippy::needless_pass_by_value)]
|
147 |
pub fn new_from_span(variant: ErrorVariant<R>, span: Span) -> Error<R> {
|
18 |
#[allow(clippy::needless_pass_by_value)]
|
19 |
pub fn generate(
|
21 |
#[allow(clippy::needless_pass_by_value)]
|
22 |
pub fn validate_pairs(pairs: Pairs<Rule>) -> Result<Vec<Span>, Vec<Error<Rule>>> {
|
460 |
#[allow(clippy::needless_pass_by_value)]
|
461 |
fn left_recursion<'a>(rules: HashMap<String, &'a ParserNode>) -> Vec<Error<Rule>> {
|
54 |
/// Create a new TCP connection to the given target using a prepared socket.
|
55 |
#[allow(clippy::needless_pass_by_value)] // builders should actually be consumed, even if net2 screwed this up
|
56 |
pub fn connect_builder(builder: net2::TcpBuilder, target: SocketAddr, handle: LazyHandle) -> io::Result<TcpConnectFuture> {
|
87 |
#[allow(clippy::needless_pass_by_value)]
|
88 |
fn local_remove(&self, task_inner: Arc<InnerTask>) {
|
4 |
#[pyfunction(name = "enrichr")]
|
5 |
#[allow(clippy::needless_pass_by_value)]
|
6 |
pub fn python_enrichr<'py>(
|
10 |
#[pyfunction(name = "search")]
|
11 |
#[allow(clippy::needless_pass_by_value)]
|
12 |
pub fn python_ensembl_search<'py>(
|
41 |
#[must_use]
|
42 |
#[allow(clippy::needless_pass_by_value)]
|
43 |
pub fn python_ensembl_database(_py: Python, filter: Option<String>) -> Vec<String> {
|
33 |
impl<W: Write + Send> ErrorWriter<W> {
|
34 |
#[allow(clippy::needless_pass_by_value)]
|
35 |
fn error(&self, s: String) {
|
164 |
#[allow(clippy::needless_pass_by_value)]
|
165 |
fn map_err(err: io::Error) -> Error {
|
139 |
#[allow(clippy::needless_pass_by_value)]
|
140 |
#[doc(alias = "g_signal_handler_disconnect")]
|
534 |
#[allow(clippy::needless_pass_by_value)]
|
535 |
fn free(&mut self, allocation: Allocation) -> Result<()> {
|
468 |
#[allow(clippy::needless_pass_by_value)]
|
469 |
fn free(&mut self, allocation: Allocation, device: &ash::Device) -> Result<()> {
|
301 |
#[allow(clippy::needless_pass_by_value)]
|
302 |
pub(crate) fn content_exists(args: ArgumentResult, visitor: &mut Visitor) -> SassResult<Value> {
|
191 |
#[cfg(feature = "random")]
|
192 |
#[allow(clippy::needless_pass_by_value)]
|
193 |
pub(crate) fn unique_id(args: ArgumentResult, _: &mut Visitor) -> SassResult<Value> {
|
67 |
/// If `lang` is `Language::Custom`
|
68 |
#[allow(clippy::needless_pass_by_value)] // because language is copy
|
69 |
pub fn set_global(lang: Self) {
|
559 |
#[cfg_attr(feature = "inline-more", inline)]
|
560 |
#[allow(clippy::needless_pass_by_value)]
|
561 |
pub unsafe fn erase(&mut self, item: Bucket<T>) {
|
584 |
#[cfg_attr(feature = "inline-more", inline)]
|
585 |
#[allow(clippy::needless_pass_by_value)]
|
586 |
pub unsafe fn remove(&mut self, item: Bucket<T>) -> T {
|
107 |
/// Tests Binary Agreement on a given configuration.
|
108 |
#[allow(clippy::needless_pass_by_value)]
|
109 |
fn binary_agreement(cfg: TestConfig) {
|
216 |
// borrow-checker restrictions.
|
217 |
#[allow(clippy::needless_pass_by_value)]
|
218 |
fn process_step<'a, D>(
|
670 |
#[inline]
|
671 |
#[allow(clippy::needless_pass_by_value)]
|
672 |
pub fn get<'a>(&'a self, id: D::NodeId) -> Option<&'a Node<D>> {
|
679 |
#[inline]
|
680 |
#[allow(clippy::needless_pass_by_value)]
|
681 |
pub fn get_mut<'a>(&'a mut self, id: D::NodeId) -> Option<&'a mut Node<D>> {
|
89 |
// TODO: Add an observer node to the test network.
|
90 |
#[allow(clippy::needless_pass_by_value, clippy::cyclomatic_complexity)]
|
91 |
fn do_drop_and_re_add(cfg: TestConfig) {
|
225 |
// Allow passing `netinfo` by value. `TestNetwork` expects this function signature.
|
226 |
#[allow(clippy::needless_pass_by_value)]
|
227 |
fn new_queueing_hb(
|
637 |
#[doc(hidden)]
|
638 |
#[allow(clippy::needless_pass_by_value)]
|
639 |
pub fn from_raw(hyper: RawHyperslab) -> Result<Self> {
|
46 |
/// is implemented for all type that implement [`fmt::Display`]).
|
47 |
#[allow(clippy::needless_pass_by_value)]
|
48 |
pub fn setup<E>(err: E) -> Error
|
578 |
/// [`actor`] module for additional information.
|
579 |
#[allow(clippy::needless_pass_by_value)]
|
580 |
pub fn spawn_local_future<Fut>(&mut self, future: Fut, options: FutureOptions)
|
59 |
/// Convert a `socket2:::SockAddr` into a `std::net::SocketAddr`.
|
60 |
#[allow(clippy::needless_pass_by_value)]
|
61 |
fn convert_address(address: SockAddr) -> io::Result<SocketAddr> {
|
217 |
#[allow(clippy::needless_pass_by_value)] // For `ActorOptions`.
|
218 |
pub(crate) fn spawn_setup<S, NA, ArgFn, E>(
|
258 |
/// Spawn a thread-safe `future`.
|
259 |
#[allow(clippy::needless_pass_by_value)]
|
260 |
pub(crate) fn spawn_future<Fut>(&self, future: Fut, options: FutureOptions)
|
85 |
/// Deregisters a command registered by `register_command`.
|
86 |
#[allow(clippy::needless_pass_by_value)]
|
87 |
pub fn deregister_command(command: Command) {
|
136 |
/// Removes a listener added by `add_print_event_listener`.
|
137 |
#[allow(clippy::needless_pass_by_value)]
|
138 |
pub fn remove_print_event_listener(listener: PrintEventListener) {
|
186 |
/// Removes a listener added by `add_window_event_listener`.
|
187 |
#[allow(clippy::needless_pass_by_value)]
|
188 |
pub fn remove_window_event_listener(listener: WindowEventListener) {
|
238 |
/// Removes a listener added by `add_raw_server_event_listener`.
|
239 |
#[allow(clippy::needless_pass_by_value)]
|
240 |
pub fn remove_raw_server_event_listener(listener: RawServerEventListener) {
|
279 |
/// Removes a timer task added by `add_timer_task`.
|
280 |
#[allow(clippy::needless_pass_by_value)]
|
281 |
pub fn remove_timer_task(task: TimerTask) {
|
36 |
/// this list.
|
37 |
#[allow(clippy::needless_pass_by_value)]
|
38 |
pub fn remove_fake_plugin(plugin: FakePlugin) {
|
90 |
#[allow(clippy::needless_pass_by_value)]
|
91 |
impl Error {
|
93 |
/// Puts a string inside quotes.
|
94 |
#[allow(clippy::needless_pass_by_value)]
|
95 |
pub(crate) fn quote<T: ToString>(value: T) -> String {
|
67 |
/// as an optimization technique while determining which files were created or deleted.
|
68 |
#[allow(clippy::needless_pass_by_value)]
|
69 |
#[tracing::instrument(level = "trace", name = "operation_v2_from_v1")]
|
218 |
#[allow(unknown_lints)]
|
219 |
#[allow(clippy::needless_pass_by_value)]
|
220 |
#[holochain_tracing_macros::newrelic_autotrace(HOLOCHAIN_CORE)]
|
286 |
#[allow(unknown_lints)]
|
287 |
#[allow(clippy::needless_pass_by_value)]
|
288 |
#[holochain_tracing_macros::newrelic_autotrace(HOLOCHAIN_CORE)]
|
10 |
#[allow(unknown_lints)]
|
11 |
#[allow(clippy::needless_pass_by_value)]
|
12 |
#[holochain_tracing_macros::newrelic_autotrace(HOLOCHAIN_CORE)]
|
11 |
#[allow(unknown_lints)]
|
12 |
#[allow(clippy::needless_pass_by_value)]
|
13 |
#[holochain_tracing_macros::newrelic_autotrace(HOLOCHAIN_CORE)]
|
10 |
#[allow(unknown_lints)]
|
11 |
#[allow(clippy::needless_pass_by_value)]
|
12 |
#[holochain_tracing_macros::newrelic_autotrace(HOLOCHAIN_CORE)]
|
24 |
pub fn clap<'a, 'b>() -> App<'a, 'b> {
|
25 |
#[allow(clippy::needless_pass_by_value)]
|
26 |
fn validate_chunk_size(value: String) -> Result<(), String> {
|
31 |
}
|
32 |
#[allow(clippy::needless_pass_by_value)]
|
33 |
fn validate_dir(value: String) -> Result<(), String> {
|
9 |
pub fn clap<'a, 'b>() -> App<'a, 'b> {
|
10 |
#[allow(clippy::needless_pass_by_value)]
|
11 |
fn validate_input(value: String) -> Result<(), String> {
|
18 |
}
|
19 |
#[allow(clippy::needless_pass_by_value)]
|
20 |
fn validate_dest(value: String) -> Result<(), String> {
|
9 |
pub fn clap<'a, 'b>() -> App<'a, 'b> {
|
10 |
#[allow(clippy::needless_pass_by_value)]
|
11 |
fn validate_input(value: String) -> Result<(), String> {
|
7 |
pub fn clap<'a, 'b>() -> App<'a, 'b> {
|
8 |
#[allow(clippy::needless_pass_by_value)]
|
9 |
fn validate_input(value: String) -> Result<(), String> {
|
442 |
#[allow(clippy::needless_pass_by_value)]
|
443 |
fn minify_children(&mut self, ctx: &Option<Context>, node: &Node) -> io::Result<()> {
|
103 |
#[must_use]
|
104 |
#[allow(clippy::needless_pass_by_value)] // Making this a reference just makes the caller slightly more awkward for no benefit
|
105 |
pub fn with_header<H>(mut self, header: H) -> Self
|
53 |
#[must_use]
|
54 |
#[allow(clippy::needless_pass_by_value)] // Making this a reference just makes the caller slightly more awkward for no benefit
|
55 |
pub fn with_header<H>(mut self, header: H) -> Self
|
137 |
/// add a set of labels to this issue ref
|
138 |
#[allow(clippy::needless_pass_by_value)] // shipped public API
|
139 |
pub fn add(&self, labels: Vec<&str>) -> Future<Vec<Label>> {
|
151 |
/// current labels
|
152 |
#[allow(clippy::needless_pass_by_value)] // shipped public API
|
153 |
pub fn set(&self, labels: Vec<&str>) -> Future<Vec<Label>> {
|
595 |
/// that language.
|
596 |
#[allow(clippy::needless_pass_by_value)] // shipped public API
|
597 |
pub fn languages(&self, github: Github) -> Future<HashMap<String, i64>> {
|
138 |
/// add a set of labels to this issue ref
|
139 |
#[allow(clippy::needless_pass_by_value)] // shipped public API
|
140 |
pub fn add(&self, labels: Vec<&str>) -> Future<Vec<Label>> {
|
152 |
/// current labels
|
153 |
#[allow(clippy::needless_pass_by_value)] // shipped public API
|
154 |
pub fn set(&self, labels: Vec<&str>) -> Future<Vec<Label>> {
|
600 |
/// that language.
|
601 |
#[allow(clippy::needless_pass_by_value)] // shipped public API
|
602 |
pub fn languages(&self, github: Github) -> Future<HashMap<String, i64>> {
|
161 |
/// [`Text`]: crate::widget::Text
|
162 |
#[allow(clippy::needless_pass_by_value)]
|
163 |
#[must_use]
|
854 |
#[cfg(test)]
|
855 |
#[allow(clippy::needless_pass_by_value)]
|
856 |
mod tests {
|
882 |
#[cfg(test)]
|
883 |
#[allow(clippy::needless_pass_by_value)]
|
884 |
mod tests {
|
882 |
#[cfg(test)]
|
883 |
#[allow(clippy::needless_pass_by_value)]
|
884 |
mod tests {
|
882 |
#[cfg(test)]
|
883 |
#[allow(clippy::needless_pass_by_value)]
|
884 |
mod tests {
|
792 |
#[cfg(test)]
|
793 |
#[allow(clippy::needless_pass_by_value)]
|
794 |
mod tests {
|
113 |
/// This function will return an error when actions fail
|
114 |
#[allow(clippy::needless_pass_by_value)]
|
115 |
pub fn run<P>(
|
193 |
impl<'pr, 'mm> JxlDecoder<'pr, 'mm> {
|
194 |
#[allow(clippy::needless_pass_by_value)]
|
195 |
pub(crate) fn decode_internal(
|
151 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
152 |
pub(crate) fn fail(e: Error) -> Result<Response<'static>, Status> {
|
160 |
#[test_case(json!({"type": "string", "pattern": "key[0-9]+"}))]
|
161 |
#[allow(clippy::needless_pass_by_value)]
|
162 |
fn test_remove_extraneous_keys_keyword_type_does_not_remove_keys(schema: Value) {
|
126 |
/// ```
|
127 |
#[allow(clippy::needless_pass_by_value)]
|
128 |
pub fn from_root(root_joint: Node<T>) -> Self {
|
60 |
/// ```
|
61 |
#[allow(clippy::needless_pass_by_value)]
|
62 |
pub fn open(file: impl AsRef<Path>, key: CompositeKey) -> KdbxResult<Database> {
|
84 |
/// ```
|
85 |
#[allow(clippy::needless_pass_by_value)]
|
86 |
pub fn open_bytes(bytes: impl AsRef<[u8]>, key: CompositeKey) -> KdbxResult<Database> {
|
380 |
#[allow(clippy::needless_pass_by_value)]
|
381 |
fn debug_kv(kv: (&u8, impl AsRef<[u8]>)) {
|
136 |
/// and matching it against the Expected type
|
137 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
138 |
pub fn read_kicad_file(name: &Path, expected: Expected) -> Result<KicadFile, KicadError> {
|
730 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
731 |
fn bool_from<T: PartialEq + fmt::Display>(i: T, t: T, f: T) -> Result<bool, KicadError> {
|
155 |
/// `scene`.
|
156 |
#[allow(clippy::needless_pass_by_value)]
|
157 |
pub fn render_at_with_alpha(
|
180 |
/// `scene`.
|
181 |
#[allow(clippy::needless_pass_by_value)]
|
182 |
pub fn render_with_alpha(
|
198 |
/// `scene`.
|
199 |
#[allow(clippy::needless_pass_by_value)]
|
200 |
pub fn render_with_alpha_in_box(
|
217 |
/// `scene`.
|
218 |
#[allow(clippy::needless_pass_by_value)]
|
219 |
pub fn render_raw_with_alpha_in_box(
|
88 |
/// Renders the text in `scene` with the baseline at `location`
|
89 |
#[allow(clippy::needless_pass_by_value)]
|
90 |
pub fn render_baseline_at(
|
64 |
#[allow(clippy::needless_pass_by_value)] // Lifetime errors if State is passed by ref.
|
65 |
pub(crate) fn validate(
|
428 |
#[allow(clippy::needless_pass_by_value)]
|
429 |
pub(crate) fn db(error: ErrorResponseBody) -> Error {
|
273 |
#[allow(clippy::too_many_lines, clippy::needless_pass_by_value)]
|
274 |
fn next_operator_token(&mut self, operation_token: Token) -> anyhow::Result<Token> {
|
256 |
/// `WriteResult::Retry`, and the caller need to retry.
|
257 |
#[allow(clippy::needless_pass_by_value, clippy::too_many_lines)]
|
258 |
pub fn insert(
|
549 |
#[inline]
|
550 |
#[allow(clippy::needless_pass_by_value)]
|
551 |
pub fn push_request(
|
588 |
#[inline]
|
589 |
#[allow(clippy::needless_pass_by_value)]
|
590 |
pub fn send_response(
|
158 |
// Look in lib.rs for justification.
|
159 |
#[allow(clippy::needless_pass_by_value)]
|
160 |
fn get_size<P: AsRef<Path>, D>(path: P, diskit: D) -> Result<usize, Error>
|
169 |
// Look in lib.rs for justification.
|
170 |
#[allow(clippy::needless_pass_by_value)]
|
171 |
fn get_ogg_len<P: AsRef<Path>, D>(path: P, diskit: D) -> Option<Duration>
|
203 |
// Look in lib.rs for justification.
|
204 |
#[allow(clippy::needless_pass_by_value)]
|
205 |
fn read_mp3_metadata_from_file<P: AsRef<Path>, D>(diskit: D, path: P) -> Option<MP3Metadata>
|
110 |
// Look in lib.rs for justification.
|
111 |
#[allow(clippy::needless_pass_by_value)]
|
112 |
pub(crate) fn new<P: AsRef<Path>, D>(path: P, diskit: D) -> Result<Self, Error>
|
284 |
// Look in lib.rs for justification.
|
285 |
#[allow(clippy::needless_pass_by_value)]
|
286 |
pub fn handle_mpris<D>(
|
7 |
// Look in lib.rs for justification.
|
8 |
#[allow(clippy::needless_pass_by_value)]
|
9 |
pub fn ensure_file_existence<D>(home: &Path, diskit: D) -> Result<(), Error>
|
20 |
// Look in lib.rs for justification.
|
21 |
#[allow(clippy::needless_pass_by_value)]
|
22 |
fn from<D>(s: &str, config: &Arc<ArcConfig>, diskit: D) -> Option<Self>
|
31 |
// Look in lib.rs for justification.
|
32 |
#[allow(clippy::needless_pass_by_value)]
|
33 |
// Called by songs::choose_random.
|
179 |
// Look in lib.rs for justification.
|
180 |
#[allow(clippy::needless_pass_by_value)]
|
181 |
pub fn run<C, A, D, R>(
|
2529 |
/// else reattach will get a new, empty page, from the OS, or fail
|
2530 |
#[allow(clippy::needless_pass_by_value)]
|
2531 |
pub fn on_existing_shmem(
|
285 |
// Handle arriving events in the client
|
286 |
#[allow(clippy::needless_pass_by_value, clippy::unused_self)]
|
287 |
fn handle_in_client(&mut self, state: &mut S, event: Event<S::Input>) -> Result<(), Error> {
|
807 |
#[allow(clippy::needless_pass_by_value)]
|
808 |
fn load_initial_inputs(
|
1174 |
impl Emulator {
|
1175 |
#[allow(clippy::needless_pass_by_value)]
|
1176 |
#[new]
|
345 |
/// Run the fuzzer
|
346 |
#[allow(clippy::needless_pass_by_value)]
|
347 |
pub fn run(&self, program: String, arguments: Vec<String>) {
|
406 |
/// Run the fuzzer
|
407 |
#[allow(clippy::needless_pass_by_value)]
|
408 |
pub fn run(&self, harness: PyObject) {
|
486 |
/// Run the fuzzer
|
487 |
#[allow(clippy::needless_pass_by_value)]
|
488 |
pub fn run(&self, emulator: &Emulator, harness: PyObject) {
|
255 |
/// Adds an archive to the manifest
|
256 |
#[allow(clippy::needless_pass_by_value)]
|
257 |
fn write_archive(&mut self, archive: StoredArchive) {
|
96 |
/// ```
|
97 |
#[allow(clippy::needless_pass_by_value)]
|
98 |
pub fn new<S: ToString>(token: S) -> Self {
|
55 |
/// ```
|
56 |
#[allow(clippy::needless_pass_by_value)]
|
57 |
pub fn activate<S: ToString>(&'a self, uuid: S) -> Activate<'a> {
|
143 |
/// ```
|
144 |
#[allow(clippy::needless_pass_by_value)]
|
145 |
pub fn ignore(&mut self, s: impl ToString) -> &'_ mut Self {
|
324 |
/// Adds the given state to the list.
|
325 |
#[allow(clippy::needless_pass_by_value)]
|
326 |
pub fn add<T: Select>(&mut self, selector: T, state: State) -> &'_ mut Self {
|
27 |
/// ```
|
28 |
#[allow(clippy::needless_pass_by_value)]
|
29 |
pub fn combine<T: PureSelect>(mut self, sel: T) -> Self {
|
305 |
#[allow(clippy::let_underscore_drop)]
|
306 |
#[allow(clippy::needless_pass_by_value)]
|
307 |
mod callbacks_off {
|
59 |
/// the setting provided is out of bounds.
|
60 |
#[allow(clippy::needless_pass_by_value)]
|
61 |
pub fn set_value(&mut self, _index: usize, _value: Value) {}
|
148 |
/// Applies a clean up to the Run.
|
149 |
#[allow(clippy::needless_pass_by_value)]
|
150 |
pub fn apply(&mut self, clean_up: CleanUp) {
|
239 |
/// `WriteResult::Retry`, and the caller need to retry.
|
240 |
#[allow(clippy::needless_pass_by_value, clippy::too_many_lines)]
|
241 |
pub fn insert(
|
17 |
/// Solves an LPN problem using Pooled Gauss
|
18 |
#[allow(clippy::many_single_char_names, clippy::needless_pass_by_value)]
|
19 |
pub fn pooled_gauss_solve(oracle: LpnOracle) -> BinVector {
|
448 |
#[allow(clippy::needless_pass_by_value)]
|
449 |
pub(crate) fn db(error: ErrorResponseBody) -> Error {
|
18 |
#[allow(clippy::needless_pass_by_value)]
|
19 |
#[test]
|
8 |
#[allow(clippy::needless_pass_by_value)]
|
9 |
fn option_from_str_helper<T: Debug + Eq + FromStr>(s: &str, out: Option<Option<T>>) {
|
22 |
#[allow(clippy::needless_pass_by_value)]
|
23 |
fn option_from_str_custom_helper<T: Debug + Eq>(
|
23 |
#[allow(clippy::needless_pass_by_value)]
|
24 |
fn from_str_helper(s: String) {
|
16 |
#[allow(clippy::needless_pass_by_value)]
|
17 |
fn exhaustive_triples_xxy_helper<
|
280 |
#[allow(clippy::needless_pass_by_value)]
|
281 |
fn exhaustive_triples_xyx_helper<
|
17 |
#[allow(clippy::needless_pass_by_value)]
|
18 |
fn exhaustive_pairs_helper<
|
234 |
#[allow(clippy::needless_pass_by_value)]
|
235 |
fn exhaustive_triples_helper<
|
9 |
#[allow(clippy::needless_pass_by_value)]
|
10 |
fn vec_from_str_helper<T: Debug + Eq + FromStr>(s: &str, out: Option<Vec<T>>) {
|
37 |
#[allow(clippy::needless_pass_by_value)]
|
38 |
fn vec_from_str_custom_helper<T: Debug + Eq>(
|
31754 |
// It would be a little confusing to only pass y by value
|
31755 |
#[allow(clippy::needless_pass_by_value)]
|
31756 |
fn div_properties_helper(x: Natural, y: Natural) {
|
23917 |
// It would be a little confusing to only pass y by value
|
23918 |
#[allow(clippy::needless_pass_by_value)]
|
23919 |
fn div_mod_and_div_rem_properties_helper(x: Natural, y: Natural) {
|
24054 |
// It would be a little confusing to only pass y by value
|
24055 |
#[allow(clippy::needless_pass_by_value)]
|
24056 |
fn ceiling_div_neg_mod_properties_helper(x: Natural, y: Natural) {
|
12884 |
#[allow(clippy::needless_pass_by_value)]
|
12885 |
fn mod_properties_helper(x: Natural, y: Natural) {
|
12994 |
#[allow(clippy::needless_pass_by_value)]
|
12995 |
fn neg_mod_properties_helper(x: Natural, y: Natural) {
|
441 |
fn list_index_clear_in_family(db: &dyn Database, x: u32, y: u32, merge_before_clear: bool) {
|
442 |
#[allow(clippy::needless_pass_by_value)]
|
443 |
// ^-- better for type inference: we want `T == &Fork`, not `T == Fork`.
|
135 |
#[allow(clippy::needless_pass_by_value)]
|
136 |
fn check_lt<T: PartialOrd>(value: T, reference: T) -> Result<(), Error<E>> {
|
144 |
#[allow(clippy::needless_pass_by_value)]
|
145 |
fn check_gt<T: PartialOrd>(value: T, reference: T) -> Result<(), Error<E>> {
|
23 |
#[allow(clippy::needless_pass_by_value)]
|
24 |
pub fn renderer_entry_point(context: RendererContext) -> Result<(), RecvError> {
|
109 |
// [clippy] can't fix, due to clap validator API, will change with clap 3
|
110 |
#[allow(clippy::needless_pass_by_value)]
|
111 |
fn is_non_zero_u32(s: String) -> Result<(), String> {
|
119 |
// [clippy] can't fix, due to clap validator API, will change with clap 3
|
120 |
#[allow(clippy::needless_pass_by_value)]
|
121 |
fn is_f64(s: String) -> Result<(), String> {
|
129 |
// [clippy] can't fix, due to clap validator API, will change with clap 3
|
130 |
#[allow(clippy::needless_pass_by_value)]
|
131 |
fn is_u32(s: String) -> Result<(), String> {
|
85 |
/// Closes the provided [`RoomHandle`].
|
86 |
#[allow(clippy::needless_pass_by_value)]
|
87 |
pub fn close_room(&self, room_to_delete: RoomHandle) {
|
314 |
/// [1]: https://tinyurl.com/w3-streams#idl-def-MediaStreamTrackState.ended
|
315 |
#[allow(clippy::needless_pass_by_value)]
|
316 |
fn parse_and_save_tracks(
|
16 |
/// methods from step 1 and 2.
|
17 |
#[allow(clippy::needless_pass_by_value)]
|
18 |
pub fn derive(mut s: Structure) -> Result<TokenStream> {
|
91 |
/// ```
|
92 |
#[allow(clippy::needless_pass_by_value)]
|
93 |
#[proc_macro_attribute]
|
485 |
/// instantiate one using [`Population::seeded`].
|
486 |
#[allow(clippy::todo, clippy::needless_pass_by_value, clippy::missing_panics_doc)]
|
487 |
pub fn with_seeded_population(
|
483 |
fn list_index_clear_in_family(db: &dyn Database, x: u32, y: u32, merge_before_clear: bool) {
|
484 |
#[allow(clippy::needless_pass_by_value)]
|
485 |
// ^-- better for type inference: we want `T == &Fork`, not `T == Fork`.
|
35 |
#[allow(clippy::needless_pass_by_value)]
|
36 |
fn filter_map_result_error(result: result::Result<char, CharsError>) -> Option<char> {
|
26 |
#[cfg_attr(docsrs, doc(cfg(feature = "static_output")))]
|
27 |
#[allow(clippy::needless_pass_by_value)]
|
28 |
pub fn page_all(pager: Pager) -> Result<(), MinusError> {
|
374 |
#[allow(clippy::needless_pass_by_value)]
|
375 |
#[quickcheck]
|
391 |
#[allow(clippy::needless_pass_by_value)]
|
392 |
#[quickcheck]
|
404 |
#[allow(clippy::needless_pass_by_value)]
|
405 |
#[quickcheck]
|
278 |
#[allow(clippy::needless_pass_by_value)]
|
279 |
#[quickcheck]
|
296 |
#[allow(clippy::needless_pass_by_value)]
|
297 |
#[quickcheck]
|
251 |
#[allow(clippy::needless_pass_by_value)]
|
252 |
#[quickcheck]
|
285 |
#[allow(clippy::needless_pass_by_value)]
|
286 |
#[quickcheck]
|
288 |
#[allow(clippy::needless_pass_by_value)]
|
289 |
#[quickcheck]
|
300 |
#[allow(clippy::needless_pass_by_value)]
|
301 |
#[quickcheck]
|
325 |
#[allow(clippy::needless_pass_by_value)]
|
326 |
#[quickcheck]
|
348 |
#[allow(clippy::needless_pass_by_value)]
|
349 |
#[quickcheck]
|
181 |
#[allow(clippy::needless_pass_by_value)]
|
182 |
#[quickcheck]
|
189 |
#[allow(clippy::needless_pass_by_value)]
|
190 |
#[quickcheck]
|
337 |
#[allow(clippy::needless_pass_by_value)]
|
338 |
pub fn remove(
|
1903 |
/// 5.9.7
|
1904 |
#[allow(clippy::needless_pass_by_value)]
|
1905 |
pub fn reduce_local_into<S: ?Sized, R: ?Sized, O>(inbuf: &S, inoutbuf: &mut R, op: O)
|
1886 |
/// 5.9.7
|
1887 |
#[allow(clippy::needless_pass_by_value)]
|
1888 |
pub fn reduce_local_into<S: ?Sized, R: ?Sized, O>(inbuf: &S, inoutbuf: &mut R, op: O)
|
492 |
#[quickcheck]
|
493 |
#[allow(clippy::needless_pass_by_value)]
|
494 |
fn edges_are_deduped(v: Vec<i32>) -> bool {
|
46 |
#[allow(clippy::needless_pass_by_value)]
|
47 |
fn lookup_buffer(
|
857 |
/// omitted from the results. Keys are required to be pre-sorted.
|
858 |
#[allow(clippy::needless_pass_by_value)]
|
859 |
pub fn get_multiple<'keys, Keys>(
|
1233 |
#[allow(clippy::needless_pass_by_value)]
|
1234 |
fn transaction_commit_thread<File: ManagedFile>(receiver: flume::Receiver<ThreadCommit<File>>) {
|
532 |
impl<'a> Attribute<'a> {
|
533 |
#[allow(clippy::needless_pass_by_value)] // All values will be small
|
534 |
#[allow(clippy::too_many_lines)]
|
1146 |
/// Not a `netCDF-4` file, late define, `fill_value` has the wrong type
|
1147 |
#[allow(clippy::needless_pass_by_value)] // All values will be small
|
1148 |
pub fn set_fill_value<T>(&mut self, fill_value: T) -> error::Result<()>
|
269 |
#[allow(clippy::needless_pass_by_value)]
|
270 |
fn prevent_duplicates_vec<T: Clone + Eq + Hash>(values: Vec<T>) -> Vec<T> {
|
291 |
#[deprecated(since = "0.10.0", note = "please use `new` instead.")]
|
292 |
#[allow(clippy::needless_pass_by_value)]
|
293 |
pub fn new_with(
|
1214 |
#[allow(clippy::unused_self)]
|
1215 |
#[allow(clippy::needless_pass_by_value)]
|
1216 |
#[allow(clippy::must_use_candidate)]
|
47 |
#[cfg(feature = "sat")]
|
48 |
#[allow(clippy::needless_pass_by_value)]
|
49 |
pub fn run<B, S, P>(
|
42 |
pub const INTERNAL_LINK_PREFIX: &'static str = ":";
|
43 |
#[allow(clippy::needless_pass_by_value)]
|
44 |
pub fn new(url: impl ToString, text: impl ToString, style: Style) -> Self {
|
52 |
// a `ShortSlice` must be smaller than a u64.
|
53 |
#[allow(clippy::needless_pass_by_value)]
|
54 |
fn xor_short(buf: ShortSlice<'_>, mask: u64) {
|
106 |
#[allow(clippy::needless_pass_by_value)]
|
107 |
fn build_module(self, module: Module) -> Result<Opa, anyhow::Error> {
|
52 |
/// Add an item to the query.
|
53 |
#[allow(clippy::needless_pass_by_value)] // TODO: fix
|
54 |
pub fn push<K, V>(&mut self, param: K, value: V)
|
21 |
#[allow(clippy::unused_self, clippy::needless_pass_by_value)]
|
22 |
pub fn post(
|
34 |
#[allow(clippy::needless_pass_by_value)]
|
35 |
pub(crate) fn evaluate_query(
|
45 |
/// Create a new `Context::Text`
|
46 |
#[allow(clippy::needless_pass_by_value)]
|
47 |
pub fn text<T, F>(text: T, format: F) -> Self
|
84 |
#[allow(clippy::needless_pass_by_value)]
|
85 |
fn add_jobs(
|
130 |
#[allow(clippy::needless_pass_by_value)]
|
131 |
fn start_workers(
|
9 |
#[allow(clippy::needless_pass_by_value)] // Tera requires pass-by-value
|
10 |
fn markdown_filter(
|
67 |
#[allow(clippy::needless_pass_by_value)]
|
68 |
#[allow(clippy::unnecessary_wraps)]
|
5 |
#[allow(clippy::needless_pass_by_value)]
|
6 |
fn do_parse_and_assert(test_val: &str, expected_val: SExp) {
|
63 |
/// are outside the original matrix.
|
64 |
#[allow(clippy::needless_pass_by_value)]
|
65 |
pub fn slice(
|
165 |
#[allow(unused)]
|
166 |
#[allow(clippy::needless_pass_by_value)]
|
167 |
fn derive_for_enum(
|
21 |
#[allow(clippy::needless_pass_by_value)]
|
22 |
pub fn generate(
|
19 |
#[allow(clippy::needless_pass_by_value)]
|
20 |
pub fn validate_pairs<'i>(pairs: Pairs<'i, Rule>) -> Result<Vec<&'i str>, Vec<Error<Rule>>> {
|
452 |
#[allow(clippy::needless_pass_by_value)]
|
453 |
fn left_recursion<'a, 'i: 'a>(rules: HashMap<String, &'a ParserNode<'i>>) -> Vec<Error<Rule>> {
|
96 |
/// ```
|
97 |
#[allow(clippy::needless_pass_by_value)]
|
98 |
pub fn new_from_pos(variant: ErrorVariant<R>, pos: Position) -> Error<R> {
|
136 |
/// ```
|
137 |
#[allow(clippy::needless_pass_by_value)]
|
138 |
pub fn new_from_span(variant: ErrorVariant<R>, span: Span) -> Error<R> {
|
1586 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
1587 |
fn quickcheck_valid_lexeme<T: Lexeme>(lexeme: T) -> bool {
|
80 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
81 |
fn oneline_range(src_idx: usize, char_range: std::ops::Range<usize>) -> Range {
|
142 |
unsafe fn drop(self: Pin<&mut Self>) {
|
143 |
#[allow(clippy::needless_pass_by_value)]
|
144 |
fn __drop_inner<T>(__self: Pin<&mut Struct<'_, T>>) {
|
148 |
unsafe fn drop(self: Pin<&mut Self>) {
|
149 |
#[allow(clippy::needless_pass_by_value)]
|
150 |
fn __drop_inner<T, U>(__self: Pin<&mut Enum<T, U>>) {
|
107 |
unsafe fn drop(self: Pin<&mut Self>) {
|
108 |
#[allow(clippy::needless_pass_by_value)]
|
109 |
fn __drop_inner<T, U>(__self: Pin<&mut Struct<T, U>>) {
|
101 |
unsafe fn drop(self: Pin<&mut Self>) {
|
102 |
#[allow(clippy::needless_pass_by_value)]
|
103 |
fn __drop_inner<T, U>(__self: Pin<&mut TupleStruct<T, U>>) {
|
385 |
#[inline(never)]
|
386 |
#[allow(clippy::needless_pass_by_value)]
|
387 |
fn helper(
|
1412 |
/// This function will panic if anything in the [`FlowData`] is invalid
|
1413 |
#[allow(clippy::needless_pass_by_value)]
|
1414 |
pub fn new(source: FlowData) -> FlowDataOutput {
|
132 |
#[allow(clippy::needless_pass_by_value)]
|
133 |
#[get("/")]
|
540 |
/// - `shutdown_rx` - Sentinel channel to tell the pool management thread to shutdown.
|
541 |
#[allow(clippy::unnecessary_wraps, clippy::needless_collect, clippy::needless_pass_by_value)]
|
542 |
fn pool_main<W, C>(
|
366 |
/// Convert [`std::io::Error`] to a [`PosixError`]
|
367 |
#[allow(clippy::needless_pass_by_value)]
|
368 |
#[deprecated(since = "1.1.0", note = "Please use PosixError::from")]
|
17 |
#[get("/")]
|
18 |
#[allow(clippy::needless_pass_by_value)]
|
19 |
pub fn index(
|
47 |
/// call `exit(0)` or `exit(1)` and print error log to `stderr`.
|
48 |
#[allow(clippy::needless_pass_by_value)]
|
49 |
pub fn build(&self, builder: Builder) -> ! {
|
162 |
#[allow(clippy::needless_pass_by_value)]
|
163 |
fn assert_exit_code(exit_code: i32, result: Result<(), Error>) {
|
265 |
#[allow(clippy::needless_pass_by_value)]
|
266 |
fn render_sequence<T>(
|
277 |
#[allow(clippy::needless_pass_by_value)]
|
278 |
fn render_sequence_if_not_empty<T>(
|
289 |
#[allow(clippy::needless_pass_by_value)]
|
290 |
fn render_sequence_impl<T>(
|
1307 |
#[allow(clippy::needless_pass_by_value)]
|
1308 |
fn assert_render(
|
113 |
#[allow(clippy::needless_pass_by_value)]
|
114 |
#[args(args = "*")]
|
69 |
#[allow(clippy::needless_pass_by_value)]
|
70 |
pub fn update(&self, iterator: PyObject) -> PyResult<Self> {
|
81 |
#[allow(clippy::needless_pass_by_value)]
|
82 |
pub fn extend(&self, iterator: PyObject) -> PyResult<Self> {
|
42 |
#[allow(clippy::needless_pass_by_value)]
|
43 |
fn recurse_to_infer_headers(value: &Value, headers: &mut Vec<Vec<String>>, path: Vec<String>) {
|
89 |
#[inline]
|
90 |
#[allow(clippy::needless_pass_by_value)]
|
91 |
pub fn add<T: ToPrimitive>(&mut self, sample: T) {
|
582 |
#[allow(clippy::needless_pass_by_value)]
|
583 |
fn delete_handles_and_return(&mut self, handles: HashSet<u64>) -> IntoIter<U, V> {
|
10 |
#[allow(dead_code, clippy::needless_pass_by_value)]
|
11 |
fn whitespace<'a, T>(input: T) -> IResult<T, T>
|
36 |
#[allow(dead_code, clippy::needless_pass_by_value)]
|
37 |
fn space<'a, T>(input: T) -> IResult<T, T>
|
70 |
#[allow(dead_code, clippy::needless_pass_by_value)]
|
71 |
fn to_str(i: Vec<u8>) -> String {
|
75 |
#[allow(dead_code, clippy::needless_pass_by_value)]
|
76 |
fn allowed_char_in_key<T>(input: T) -> IResult<T, T, u32>
|
163 |
#[allow(dead_code, clippy::needless_pass_by_value)]
|
164 |
fn allowed_char_in_err_msg<T>(input: T) -> IResult<T, T, u32>
|
9 |
#[allow(dead_code, clippy::needless_pass_by_value)]
|
10 |
fn whitespace<'a, T>(input: T) -> IResult<T, T>
|
35 |
#[allow(dead_code, clippy::needless_pass_by_value)]
|
36 |
fn space<'a, T>(input: T) -> IResult<T, T>
|
74 |
#[allow(dead_code, clippy::needless_pass_by_value)]
|
75 |
fn to_str(i: Vec<u8>) -> String {
|
79 |
#[allow(dead_code, clippy::needless_pass_by_value)]
|
80 |
fn allowed_char_in_key<T>(input: T) -> IResult<T, T, u32>
|
181 |
#[allow(dead_code, clippy::needless_pass_by_value)]
|
182 |
fn allowed_char_in_err_msg<T>(input: T) -> IResult<T, T, u32>
|
276 |
#[must_use]
|
277 |
#[allow(clippy::needless_pass_by_value)]
|
278 |
pub unsafe fn into_vec(this: Self) -> Vec<T> {
|
151 |
#[allow(clippy::needless_pass_by_value)]
|
152 |
#[cfg(test)]
|
122 |
#[cfg(test)]
|
123 |
#[allow(clippy::needless_pass_by_value)]
|
124 |
mod tests {
|
263 |
#[cfg(test)]
|
264 |
#[allow(clippy::needless_pass_by_value)]
|
265 |
pub(crate) mod tests {
|
356 |
#[allow(
|
357 |
clippy::needless_pass_by_value,
|
358 |
clippy::used_underscore_binding,
|
156 |
#[allow(
|
157 |
clippy::needless_pass_by_value,
|
158 |
clippy::used_underscore_binding,
|
179 |
#[allow(
|
180 |
clippy::needless_pass_by_value,
|
181 |
clippy::used_underscore_binding,
|
106 |
#[allow(
|
107 |
clippy::needless_pass_by_value,
|
108 |
clippy::used_underscore_binding,
|
120 |
#[allow(
|
121 |
clippy::needless_pass_by_value,
|
122 |
clippy::used_underscore_binding,
|
893 |
#[cfg(test)]
|
894 |
#[allow(clippy::needless_pass_by_value)]
|
895 |
mod packed_tensor {
|
14 |
/// [`Async`]: slog_async/struct.Async.html
|
15 |
#[allow(clippy::needless_pass_by_value)]
|
16 |
pub fn async_flush<D>(config: Config, opts: &Opts, drain: D) -> Logger
|
30 |
/// Convert an OpenTracingRust error into an IronError.
|
31 |
#[allow(clippy::needless_pass_by_value)]
|
32 |
pub fn otr_into_ironerror(error: OTError) -> IronError {
|
52 |
// a `ShortSlice` must be smaller than a u64.
|
53 |
#[allow(clippy::needless_pass_by_value)]
|
54 |
fn xor_short(buf: ShortSlice<'_>, mask: u64) {
|
208 |
/// the original. This is mostly used in error conversion; e.g., in [`Result::map_err()`].
|
209 |
#[allow(clippy::needless_pass_by_value)]
|
210 |
pub fn convert<E: ToString>(err: E) -> Self {
|
515 |
/// ```
|
516 |
#[allow(clippy::cast_sign_loss, clippy::needless_pass_by_value)]
|
517 |
pub fn chop(blob: &mut Blob, len: INT) {
|
24 |
#[inline(always)]
|
25 |
#[allow(clippy::needless_pass_by_value)]
|
26 |
fn std_add<T>(x: T, y: T) -> Option<T>
|
33 |
#[allow(dead_code)]
|
34 |
#[allow(clippy::unnecessary_wraps, clippy::needless_pass_by_value)]
|
35 |
fn regular_add<T>(x: T, y: T) -> Option<T>
|
1624 |
)]
|
1625 |
#[allow(clippy::needless_pass_by_value)] // would require a major refactor
|
1626 |
pub fn run_decoder<P: Pixel>(&self, stream: impl Read) -> Result<Image<P>> {
|
1653 |
)]
|
1654 |
#[allow(clippy::needless_pass_by_value)] // would require a major refactor
|
1655 |
pub fn run_sequence_decoder<P: Pixel, R: Read>(
|
45 |
/// [`examples/simple`]: https://github.com/whatisaphone/rlbot-rust/blob/master/examples/simple.rs
|
46 |
#[allow(clippy::needless_pass_by_value)]
|
47 |
pub fn init_with_options(options: InitOptions) -> Result<RLBot, Box<dyn Error>> {
|
18 |
#[cfg(feature = "auto-interactive")]
|
19 |
#[allow(clippy::needless_pass_by_value)]
|
20 |
pub fn with_message(message: String) -> Result<bool> {
|
45 |
#[allow(clippy::needless_pass_by_value)]
|
46 |
#[inline]
|
89 |
#[must_use]
|
90 |
#[allow(clippy::needless_pass_by_value)]
|
91 |
pub fn swap(&self, canvas: LedCanvas) -> LedCanvas {
|
52 |
#[allow(clippy::needless_pass_by_value)]
|
53 |
pub fn test_recurring_rrule_set(rrule_set: RRuleSet, expected_dates: &[DateTime<Tz>]) {
|
20 |
/// Returns `<td>value</td>` or `<th>value</td>`.
|
21 |
#[allow(clippy::needless_pass_by_value)]
|
22 |
fn to_entry(dom: &mut RcDom, value: &str, tag: Tag) -> Rc<Node> {
|
74 |
/// Returns `<title>value</title>`.
|
75 |
#[allow(clippy::needless_pass_by_value)]
|
76 |
fn to_title(dom: &mut RcDom, value: &str) -> Rc<Node> {
|
325 |
]);
|
326 |
#[allow(clippy::needless_pass_by_value)]
|
327 |
fn bytes(ty: Type) -> Vec<u8> {
|
63 |
// but I don't want references, because they have the lifetime problem.
|
64 |
#[allow(clippy::needless_pass_by_value)]
|
65 |
/// setup WebSocket connection
|
280 |
/// ```
|
281 |
#[allow(clippy::needless_pass_by_value)]
|
282 |
pub unsafe fn from_raw_parts<'a>(data: DevicePointer<T>, len: usize) -> &'a DeviceSlice<T> {
|
515 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
516 |
fn push_rewrite_inner(&mut self, span: Span, rewrite: Option<String>) {
|
739 |
#[allow(clippy::needless_pass_by_value)]
|
740 |
fn push_rewrite_inner(&mut self, span: Span, rewrite: Option<String>) {
|
729 |
#[allow(clippy::needless_pass_by_value)]
|
730 |
fn push_rewrite_inner(&mut self, span: Span, rewrite: Option<String>) {
|
7 |
#[allow(clippy::needless_pass_by_value)]
|
8 |
#[allow(clippy::unused_async)]
|
5 |
#[allow(clippy::needless_pass_by_value)] // this function should follow the callback type
|
6 |
fn log_callback(
|
290 |
/// This handles the properties of `HttpRequest`
|
291 |
#[allow(clippy::needless_pass_by_value)] // this function should follow the callback type
|
292 |
fn request_prop_handler(
|
94 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
95 |
pub mod validators {
|
97 |
// Allow pass by value for consistency with other functions.
|
98 |
#[allow(clippy::needless_pass_by_value)]
|
99 |
pub async fn delete<S>(
|
7 |
fn syntax_errors() {
|
8 |
#[allow(clippy::needless_pass_by_value)]
|
9 |
fn to_s(s: TokenStream) -> String {
|
45 |
impl ExchangeProcessor {
|
46 |
#[allow(clippy::needless_pass_by_value)]
|
47 |
fn map_to_invalid_arg(err: std::boxed::Box<bincode::ErrorKind>) -> InstructionError {
|
419 |
#[allow(clippy::needless_pass_by_value)]
|
420 |
fn poll_task(
|
249 |
#[allow(clippy::needless_pass_by_value)]
|
250 |
fn timer_thread(receiver: Receiver<ScheduledWake>) {
|
730 |
/// Only call this function once you have finished the handshake!
|
731 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
732 |
pub fn task_loop(
|
1470 |
/// Handle an incoming [`Token`](messages/struct.Token.html) message.
|
1471 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
1472 |
fn handle_token(&mut self, msg: Token, source: Address) -> SignalingResult<Vec<HandleAction>> {
|
1505 |
/// Handle an incoming [`Key`](messages/struct.Key.html) message.
|
1506 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
1507 |
fn handle_key(&mut self, msg: Key, source: Address) -> SignalingResult<Vec<HandleAction>> {
|
2139 |
/// The token is consumed to avoid accidentally reusing it.
|
2140 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
2141 |
fn send_token(&self, token: AuthToken) -> SignalingResult<HandleAction> {
|
2190 |
/// Handle an incoming [`Key`](messages/struct.Key.html) message.
|
2191 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
2192 |
fn handle_key(&mut self, msg: Key, nonce: &Nonce) -> SignalingResult<Vec<HandleAction>> {
|
2331 |
/// Handle an incoming [`Close`](messages/struct.Close.html) message during peer handshake.
|
2332 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
2333 |
fn handle_peer_handshake_close(&mut self, msg: Close) -> SignalingResult<Vec<HandleAction>> {
|
834 |
#[allow(clippy::needless_pass_by_value)]
|
835 |
fn remove_blocks_from_blockstore(
|
987 |
/// Append element as last child of this element.
|
988 |
#[allow(clippy::needless_pass_by_value)]
|
989 |
pub fn push(&mut self, element: Element) {
|
52 |
// a `ShortSlice` must be smaller than a u64.
|
53 |
#[allow(clippy::needless_pass_by_value)]
|
54 |
fn xor_short(buf: ShortSlice<'_>, mask: u64) {
|
52 |
#[allow(clippy::needless_pass_by_value)]
|
53 |
pub fn url_request_handler(
|
679 |
#[allow(clippy::needless_pass_by_value)]
|
680 |
fn send(envelope: RawEnvelope) {
|
55 |
/// the original. This is mostly used in error conversion; e.g., in [`Result::map_err()`].
|
56 |
#[allow(clippy::needless_pass_by_value)]
|
57 |
pub fn convert<E: ToString>(err: E) -> Self {
|
154 |
/// Convert a `serde_cbor::Value` into a type `T`
|
155 |
#[allow(clippy::needless_pass_by_value)]
|
156 |
pub fn from_value<T>(value: Value) -> Result<T, crate::error::Error>
|
435 |
/// ```
|
436 |
#[allow(clippy::needless_pass_by_value)]
|
437 |
// Taking by value is more friendly to iterator adapters, option and result
|
154 |
/// Convert a `serde_cbor::Value` into a type `T`
|
155 |
#[allow(clippy::needless_pass_by_value)]
|
156 |
pub fn from_value<T>(value: Value) -> Result<T, crate::error::Error>
|
435 |
/// ```
|
436 |
#[allow(clippy::needless_pass_by_value)]
|
437 |
// Taking by value is more friendly to iterator adapters, option and result
|
45 |
#[allow(clippy::needless_pass_by_value)]
|
46 |
fn event_sender_thread(state: Arc<State>, permit: Permit) {
|
38 |
#[must_use]
|
39 |
#[allow(clippy::needless_pass_by_value)]
|
40 |
pub fn error_reading_file(e: std::io::Error) -> Self {
|
44 |
#[must_use]
|
45 |
#[allow(clippy::needless_pass_by_value)]
|
46 |
pub fn error_reading_response_body(e: std::io::Error) -> Self {
|
50 |
#[must_use]
|
51 |
#[allow(clippy::needless_pass_by_value)]
|
52 |
pub fn error_saving_file(e: std::io::Error) -> Self {
|
193 |
#[allow(clippy::needless_pass_by_value)]
|
194 |
#[must_use]
|
178 |
#[must_use]
|
179 |
#[allow(clippy::needless_pass_by_value)]
|
180 |
pub fn connect(e: std::io::Error) -> Self {
|
183 |
#[must_use]
|
184 |
#[allow(clippy::needless_pass_by_value)]
|
185 |
pub fn write(e: std::io::Error) -> Self {
|
187 |
}
|
188 |
#[allow(clippy::needless_pass_by_value)]
|
189 |
#[must_use]
|
25 |
#[allow(clippy::needless_pass_by_value)]
|
26 |
fn default_oom_handler( _err: AllocErr) -> ! {
|
11 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value, use_debug))]
|
12 |
pub(crate) fn default_catch<E: fmt::Debug + Send>(err: E) -> Response {
|
13 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
14 |
fn indent(v: Value, m: HashMap<String, Value>) -> tera::Result<Value> {
|
28 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
29 |
fn as_secret(v: Value, _: HashMap<String, Value>) -> tera::Result<Value> {
|
227 |
impl ObjectDeserializer {
|
228 |
#[allow(clippy::boxed_local, clippy::needless_pass_by_value)]
|
229 |
fn new(map: Box<Object>) -> Self {
|
893 |
fn test_clap_error_value_validation() {
|
894 |
#[allow(clippy::needless_pass_by_value)]
|
895 |
fn is_numeric(val: String) -> Result<(), String> {
|
262 |
#[allow(clippy::needless_pass_by_value)]
|
263 |
pub(crate) fn maybe_decompress(in_buf: Vec<u8>) -> std::io::Result<Vec<u8>> {
|
525 |
/// ```
|
526 |
#[allow(clippy::needless_pass_by_value)]
|
527 |
pub fn compare_and_swap<K, OV, NV>(
|
1220 |
#[inline]
|
1221 |
#[allow(clippy::needless_pass_by_value)]
|
1222 |
pub fn drain<R>(&mut self, range: R) -> Drain<T>
|
1220 |
#[inline]
|
1221 |
#[allow(clippy::needless_pass_by_value)]
|
1222 |
pub fn drain<R>(&mut self, range: R) -> Drain<T>
|
96 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
97 |
fn event_loop_impl<T: Notifier + Send + 'static>(
|
26 |
#[allow(clippy::needless_pass_by_value)]
|
27 |
fn map_to_invalid_arg(err: std::boxed::Box<bincode::ErrorKind>) -> InstructionError {
|
25 |
#[allow(clippy::needless_pass_by_value)]
|
26 |
fn map_to_invalid_arg(err: std::boxed::Box<bincode::ErrorKind>) -> InstructionError {
|
16 |
impl ExchangeProcessor {
|
17 |
#[allow(clippy::needless_pass_by_value)]
|
18 |
fn map_to_invalid_arg(err: std::boxed::Box<bincode::ErrorKind>) -> InstructionError {
|
45 |
impl ExchangeProcessor {
|
46 |
#[allow(clippy::needless_pass_by_value)]
|
47 |
fn map_to_invalid_arg(err: std::boxed::Box<bincode::ErrorKind>) -> InstructionError {
|
9 |
#[allow(clippy::needless_pass_by_value)]
|
10 |
pub fn map_data_error(err: std::boxed::Box<bincode::ErrorKind>) -> InstructionError {
|
18 |
#[allow(clippy::needless_pass_by_value)]
|
19 |
pub fn map_json_error(err: serde_json::error::Error) -> InstructionError {
|
29 |
#[allow(clippy::needless_pass_by_value)]
|
30 |
pub fn missing_account() -> InstructionError {
|
75 |
impl MoveProcessor {
|
76 |
#[allow(clippy::needless_pass_by_value)]
|
77 |
fn missing_account() -> InstructionError {
|
93 |
impl TokenState {
|
94 |
#[allow(clippy::needless_pass_by_value)]
|
95 |
fn map_to_invalid_args(err: std::boxed::Box<bincode::ErrorKind>) -> TokenError {
|
10 |
#[allow(clippy::needless_pass_by_value)]
|
11 |
pub fn combine_data(
|
5 |
#[allow(clippy::needless_pass_by_value)]
|
6 |
fn string_from_js_string(s: js_sys::JsString) -> String {
|
152 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
153 |
pub fn require_to_commit(
|
371 |
#[allow(clippy::needless_pass_by_value)]
|
372 |
fn map_re(e: RusotoError<GetQueueUrlError>) -> RusotoError<SendMessageError> {
|
482 |
#[allow(clippy::needless_pass_by_value)]
|
483 |
fn map_re(e: RusotoError<GetQueueUrlError>) -> RusotoError<ReceiveMessageError> {
|
487 |
#[allow(clippy::needless_pass_by_value)]
|
488 |
fn map_del(e: RusotoError<GetQueueUrlError>) -> RusotoError<DeleteMessageError> {
|
500 |
#[allow(clippy::needless_pass_by_value)]
|
501 |
fn receive_message_request(
|
528 |
#[doc(hidden)]
|
529 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
530 |
#[inline]
|
130 |
//@todo remove this if/when we
|
131 |
#[allow(clippy::needless_pass_by_value)]
|
132 |
pub fn new(
|
31 |
impl InvertedIndexReader {
|
32 |
#[allow(clippy::needless_pass_by_value)] // for symmetry
|
33 |
pub(crate) fn new(
|
145 |
/// not required.
|
146 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
147 |
pub(crate) fn build_url(&self, query: &str, args: Query) -> Result<String> {
|
52 |
#[allow(clippy::needless_pass_by_value)]
|
53 |
fn my_callback(store: SCDynamicStore, changed_keys: CFArray<CFString>, context: &mut Context) {
|
198 |
fn memeq_test() {
|
199 |
#[allow(clippy::needless_pass_by_value)]
|
200 |
fn check_memeq(x: Vec<u8>, y: Vec<u8>) -> bool {
|
216 |
fn memcmp_test() {
|
217 |
#[allow(clippy::needless_pass_by_value)]
|
218 |
fn check_memcmp(x: Vec<u8>, y: Vec<u8>) -> bool {
|
50 |
fn test_non_zero_padding_quick() {
|
51 |
#[allow(clippy::needless_pass_by_value)]
|
52 |
fn check_padding(mut data: Vec<u8>) -> bool {
|
79 |
fn test_randon_front_back_padding_quick() {
|
80 |
#[allow(clippy::needless_pass_by_value)]
|
81 |
fn check_padding(data: Vec<u8>) -> bool {
|
12 |
impl WidthString {
|
13 |
#[allow(clippy::needless_pass_by_value)]
|
14 |
pub fn new<T: ToString>(thing: T) -> Self {
|
31 |
impl InvertedIndexReader {
|
32 |
#[allow(clippy::needless_pass_by_value)] // for symmetry
|
33 |
pub(crate) fn new(
|
42 |
/// it is Some).
|
43 |
#[allow(clippy::needless_pass_by_value)]
|
44 |
pub fn new(
|
61 |
/// client.
|
62 |
#[allow(clippy::needless_pass_by_value)]
|
63 |
pub fn new_default(token: impl ToString) -> Self {
|
54 |
/// Sets the token to be used in authorizing the API requests of your bot
|
55 |
#[allow(clippy::needless_pass_by_value)]
|
56 |
pub fn set_token(&mut self, token: impl ToString) -> &mut Self {
|
38 |
#[allow(clippy::needless_pass_by_value)]
|
39 |
fn fire_message_commands(&self, context: Context, message: Message) {
|
38 |
#[allow(clippy::needless_pass_by_value)]
|
39 |
fn fire_message_commands(&self, context: Context, message: Message) {
|
84 |
impl AdhocError {
|
85 |
#[allow(clippy::needless_pass_by_value)]
|
86 |
pub fn new(e: impl ToString) -> Self {
|
191 |
clippy::cast_possible_truncation,
|
192 |
clippy::needless_pass_by_value
|
193 |
)]
|
302 |
clippy::cast_possible_truncation,
|
303 |
clippy::needless_pass_by_value
|
304 |
)]
|
93 |
clippy::cast_possible_truncation,
|
94 |
clippy::needless_pass_by_value
|
95 |
)]
|
164 |
clippy::cast_possible_truncation,
|
165 |
clippy::needless_pass_by_value
|
166 |
)]
|
15 |
clippy::unnecessary_wraps,
|
16 |
clippy::needless_pass_by_value,
|
17 |
clippy::manual_assert,
|
94 |
#[allow(clippy::needless_pass_by_value)]
|
95 |
fn handle_input_ev(
|
216 |
#[allow(clippy::needless_pass_by_value)]
|
217 |
fn handle_radio_ev(
|
136 |
#[allow(clippy::needless_pass_by_value)]
|
137 |
fn handle_input_ev(
|
89 |
#[allow(clippy::needless_pass_by_value)] //All parameters are moved into the thread closure anyway.
|
90 |
fn socket_read_thread_fn(mut tcp_stream: TcpStream, response_tx: Sender<SocketThreadRequest>, session_id: u64) {
|
361 |
#[allow(clippy::needless_pass_by_value)] //All parameters are moved into the thread closure anyway.
|
362 |
fn socket_thread_fn(
|
448 |
#[allow(clippy::needless_pass_by_value)]
|
449 |
pub(crate) fn db(error: ErrorResponseBody) -> Error {
|
472 |
#[allow(clippy::needless_pass_by_value)] // we do this for consistency
|
473 |
fn chk(
|
528 |
// Allow passing `runtime` by value, which is usual API for this kind of setup function.
|
529 |
#[allow(clippy::needless_pass_by_value)]
|
530 |
fn new_internal(
|
225 |
/// with the message to send.
|
226 |
#[allow(clippy::needless_pass_by_value)]
|
227 |
fn client1<R: RngCore + CryptoRng>(
|
142 |
/// Called when a spawn request completes.
|
143 |
#[allow(clippy::needless_pass_by_value)]
|
144 |
fn handle_spawned(
|
89 |
/// Generator that returns specified error.
|
90 |
#[allow(clippy::needless_pass_by_value)]
|
91 |
pub fn gen_error(_buf: (&mut [u8], usize), error: u32) -> Result<(&mut [u8], usize), GenError> {
|
137 |
impl OnionReturn {
|
138 |
#[allow(clippy::needless_pass_by_value)]
|
139 |
fn inner_to_bytes<'a>(ip_port: &IpPort, inner: Option<&OnionReturn>, buf: (&'a mut [u8], usize)) -> Result<(&'a mut [u8], usize), GenError> {
|
24 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
25 |
#[proc_macro_attribute]
|
92 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
93 |
#[proc_macro_attribute]
|
66 |
#[inline]
|
67 |
#[allow(clippy::needless_pass_by_value)]
|
68 |
pub fn into_response<T>(t: T, _: &Request<()>) -> tsukuyomi::Result<Response<String>>
|
23 |
#[allow(clippy::needless_pass_by_value)] // Style usually is a small type
|
24 |
fn plain_text<'a, R, S>(escaped: &'a str, style: Option<S>) -> Vec<R>
|
54 |
#[allow(clippy::needless_pass_by_value)] // Style usually is a small type
|
55 |
fn items<'a, C, R, S>(items: Vec<ItemC<'a, C>>, style: Option<S>) -> Vec<R>
|
222 |
#[cfg_attr(feature = "cargo-clippy",
|
223 |
allow(needless_range_loop, needless_pass_by_value))]
|
224 |
fn event_loop(tx: Sender<Box<Event>>) -> Result<()> {
|
135 |
// clippy: the contents of `fields` is consumed
|
136 |
#[allow(clippy::missing_const_for_fn, clippy::needless_pass_by_value)]
|
137 |
pub(crate) fn from_interaction_member(
|
94 |
// clippy: the contents of `member_roles_error` is consumed
|
95 |
#[allow(clippy::needless_pass_by_value)]
|
96 |
fn from_member_roles(member_roles_error: MemberRolesErrorType) -> Self {
|
219 |
// clippy: the contents of `member_roles_error` is consumed
|
220 |
#[allow(clippy::needless_pass_by_value)]
|
221 |
fn from_member_roles(member_roles_error: MemberRolesErrorType) -> Self {
|
23 |
#[allow(clippy::needless_pass_by_value)]
|
24 |
impl<'a> CreateGuildExternalScheduledEvent<'a> {
|
320 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))] // clippy lies
|
321 |
fn noop_fold_qself<F: ?Sized + Folder>(folder: &mut F, qself: QSelf) -> QSelf {
|
4 |
#[allow(clippy::needless_pass_by_value)] // this function should follow the callback type
|
5 |
fn log_callback(
|
289 |
/// This handles the properties of `HttpRequest`
|
290 |
#[allow(clippy::needless_pass_by_value)] // this function should follow the callback type
|
291 |
fn request_prop_handler(
|
507 |
#[allow(clippy::needless_pass_by_value)]
|
508 |
fn inner_add_git_map_entries(
|
56 |
#[allow(clippy::needless_pass_by_value)]
|
57 |
fn caps_proper(val: String) -> String {
|
215 |
#[allow(unknown_lints, clippy::needless_pass_by_value)]
|
216 |
pub fn resolve<Addr: ToSocketAddrs + fmt::Debug>(addr: Addr) -> Result<SmallVec<[SocketAddr; 4]>, Error> {
|
262 |
#[allow(clippy::needless_pass_by_value)]
|
263 |
pub(crate) fn maybe_decompress(in_buf: Vec<u8>) -> std::io::Result<Vec<u8>> {
|
525 |
/// ```
|
526 |
#[allow(clippy::needless_pass_by_value)]
|
527 |
pub fn compare_and_swap<K, OV, NV>(
|
126 |
/// Remove a record.
|
127 |
#[allow(clippy::needless_pass_by_value)]
|
128 |
#[rhai_fn(global, name = "rm", return_raw, pure)]
|
145 |
/// Query the database.
|
146 |
#[allow(clippy::needless_pass_by_value)]
|
147 |
#[rhai_fn(global, name = "get", return_raw, pure)]
|
279 |
#[rhai_fn(global, name = "query", return_raw, pure)]
|
280 |
#[allow(clippy::needless_pass_by_value)]
|
281 |
pub fn query_obj(
|
568 |
/// Operator `==` for `SharedObject`
|
569 |
#[allow(clippy::needless_pass_by_value)]
|
570 |
#[rhai_fn(global, name = "==", pure)]
|
575 |
/// Operator `!=` for `SharedObject`
|
576 |
#[allow(clippy::needless_pass_by_value)]
|
577 |
#[rhai_fn(global, name = "!=", pure)]
|
594 |
/// Operator `==` for `&str` and `SharedObject`
|
595 |
#[allow(clippy::needless_pass_by_value)]
|
596 |
#[rhai_fn(global, name = "==", return_raw)]
|
601 |
/// Operator `!=` for `&str` and `SharedObject`
|
602 |
#[allow(clippy::needless_pass_by_value)]
|
603 |
#[rhai_fn(global, name = "!=", return_raw)]
|
615 |
/// Operator `contains`
|
616 |
#[allow(clippy::needless_pass_by_value)]
|
617 |
#[rhai_fn(global, name = "contains", pure)]
|
89 |
/// ```
|
90 |
#[allow(clippy::needless_pass_by_value)]
|
91 |
#[must_use]
|
44 |
/// A native implementation will be provided in the future.
|
45 |
#[allow(clippy::needless_pass_by_value)]
|
46 |
#[rhai_fn(name = "unix_users", return_raw)]
|
93 |
/// ```
|
94 |
#[allow(clippy::needless_pass_by_value)]
|
95 |
#[rhai_fn(name = "is_authenticated", return_raw)]
|
123 |
/// ```
|
124 |
#[allow(clippy::needless_pass_by_value)]
|
125 |
#[rhai_fn(name = "credentials", return_raw)]
|
38 |
/// Has the `ctx()` a DKIM signature verification result ?
|
39 |
#[allow(clippy::needless_pass_by_value)]
|
40 |
#[rhai_fn(name = "has_result", return_raw)]
|
46 |
/// an error if no result is found.
|
47 |
#[allow(clippy::needless_pass_by_value)]
|
48 |
#[rhai_fn(name = "result", return_raw)]
|
56 |
/// * The `status` field is missing in the DKIM verification results.
|
57 |
#[allow(clippy::needless_pass_by_value)]
|
58 |
#[rhai_fn(return_raw)]
|
63 |
/// Get the list of DKIM private keys associated with this sdid
|
64 |
#[allow(clippy::needless_pass_by_value)]
|
65 |
#[rhai_fn(return_raw)]
|
246 |
/// ```
|
247 |
#[allow(clippy::needless_pass_by_value)]
|
248 |
#[rhai_fn(return_raw)]
|
48 |
/// ```
|
49 |
#[allow(clippy::needless_pass_by_value)]
|
50 |
#[rhai_fn(name = "check", return_raw)]
|
70 |
/// ```
|
71 |
#[allow(clippy::needless_pass_by_value)]
|
72 |
#[rhai_fn(name = "lookup", return_raw)]
|
154 |
/// never panics.
|
155 |
#[allow(clippy::needless_pass_by_value)]
|
156 |
#[must_use]
|
41 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
42 |
pub fn http_serve(
|
120 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
121 |
fn serve_impl<OE>(
|
251 |
#[allow(clippy::needless_pass_by_value)]
|
252 |
fn uppercase_first_letter(s: Cow<'_, str>) -> Cow<'_, str> {
|
226 |
/// otherwise pass the cell and hidden states from previous iterations.
|
227 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value, type_complexity))]
|
228 |
pub fn forward<C, H, I>(
|
366 |
// Allow(clippy::needless_pass_by_value): For the filter_map flow
|
367 |
#[allow(clippy::needless_pass_by_value)]
|
368 |
fn file_to_fd(entry: std::fs::DirEntry) -> Option<i32> {
|
375 |
// Allow(clippy::needless_pass_by_value): For the map_err flow
|
376 |
#[allow(clippy::needless_pass_by_value)]
|
377 |
fn err_list(err: std::io::Error) -> Error {
|
42 |
/// It's a simple shortcut for [`Method::new`](crate::core::Method::new) method.
|
43 |
#[allow(clippy::needless_pass_by_value)]
|
44 |
pub fn new(value: &<Self as Method>::Input) -> Result<Self, Error> {
|
16 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
17 |
fn default_uid_validator(s: String) -> Result<(), String> {
|
25 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
26 |
fn flags_validator(s: String) -> Result<(), String> {
|
196 |
// Quickcheck requires pass by value
|
197 |
#[allow(clippy::needless_pass_by_value)]
|
198 |
#[cfg(test)]
|
140 |
/// Submits a new Ogg packet to the analyzer
|
141 |
#[allow(clippy::needless_pass_by_value)]
|
142 |
pub fn submit(&mut self, packet: Packet) -> Result<(), Error> {
|
115 |
/// Image loader to run in a background thread
|
116 |
#[allow(clippy::needless_pass_by_value)] // It's better for this function to own the sender
|
117 |
fn image_loader(
|
139 |
clippy::too_many_arguments,
|
140 |
clippy::needless_pass_by_value,
|
141 |
clippy::unwrap_used
|
34 |
clippy::must_use_candidate,
|
35 |
clippy::needless_pass_by_value,
|
36 |
clippy::similar_names,
|
24 |
#![allow(
|
25 |
clippy::needless_pass_by_value,
|
26 |
clippy::wrong_self_convention,
|
126 |
// not practical
|
127 |
needless_pass_by_value,
|
128 |
similar_names,
|
23 |
clippy::match_like_matches_macro,
|
24 |
clippy::needless_pass_by_value,
|
25 |
clippy::too_many_arguments,
|
34 |
clippy::wildcard_imports,
|
35 |
clippy::needless_pass_by_value,
|
36 |
clippy::unnecessary_wraps,
|
27 |
clippy::missing_errors_doc,
|
28 |
clippy::needless_pass_by_value,
|
29 |
clippy::default_trait_access,
|
50 |
clippy::if_not_else,
|
51 |
clippy::needless_pass_by_value,
|
52 |
clippy::suspicious_op_assign_impl,
|
4 |
clippy::items_after_statements,
|
5 |
clippy::needless_pass_by_value,
|
6 |
clippy::shadow_unrelated,
|
5 |
// `impl ToString` is better than `&impl ToString`. Clippy is not ready for impl trait.
|
6 |
#![allow(clippy::needless_pass_by_value)]
|
14 |
// It's a ******* Rc
|
15 |
clippy::needless_pass_by_value
|
16 |
)]
|
154 |
#![allow(clippy::missing_errors_doc)]
|
155 |
#![allow(clippy::needless_pass_by_value)]
|
156 |
#![deny(clippy::redundant_closure_for_method_calls)]
|
81 |
#![allow(clippy::needless_bool)]
|
82 |
#![allow(clippy::needless_pass_by_value)]
|
83 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
61 |
#![allow(clippy::enum_glob_use, clippy::needless_pass_by_value)]
|
17 |
#![allow(clippy::unsafe_derive_deserialize)]
|
18 |
#![allow(clippy::needless_pass_by_value)]
|
19 |
#![allow(clippy::use_self)]
|
675 |
#![allow(clippy::single_match, clippy::match_same_arms, clippy::match_ref_pats,
|
676 |
clippy::clone_on_ref_ptr, clippy::needless_pass_by_value)]
|
677 |
#![deny(clippy::wrong_pub_self_convention, clippy::used_underscore_binding,
|
17 |
#![allow(clippy::single_match, clippy::match_same_arms, clippy::match_ref_pats,
|
18 |
clippy::clone_on_ref_ptr, clippy::needless_pass_by_value)]
|
19 |
#![deny(clippy::wrong_pub_self_convention, clippy::used_underscore_binding,
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
2 |
mod build_info;
|
124 |
clippy::needless_doctest_main,
|
125 |
clippy::needless_pass_by_value,
|
126 |
clippy::similar_names,
|
2 |
clippy::manual_range_contains,
|
3 |
clippy::needless_pass_by_value,
|
4 |
clippy::type_complexity
|
2 |
clippy::match_like_matches_macro,
|
3 |
clippy::needless_pass_by_value,
|
4 |
clippy::uninlined_format_args
|
17 |
clippy::multiple_crate_versions,
|
18 |
clippy::needless_pass_by_value
|
19 |
)]
|
4 |
clippy::return_self_not_must_use,
|
5 |
clippy::needless_pass_by_value
|
6 |
)]
|
21 |
#![allow(clippy::module_name_repetitions)]
|
22 |
#![allow(clippy::needless_pass_by_value)] // False positives with `SystemParam`s.
|
23 |
#![allow(clippy::forget_non_drop)]
|
1 |
#![allow(
|
2 |
clippy::needless_pass_by_value,
|
3 |
clippy::type_complexity,
|
1 |
#![allow(
|
2 |
clippy::needless_pass_by_value,
|
3 |
clippy::type_complexity,
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
6 |
#![cfg(feature = "async")]
|
7 |
#![allow(clippy::needless_pass_by_value)]
|
1 |
#![allow(clippy::bool_assert_comparison, clippy::needless_pass_by_value)]
|
7 |
#![cfg_attr(feature="cargo-clippy", allow(needless_pass_by_value))]
|
8 |
// The pass-by-value is mandated by Tera.
|
8 |
clippy::needless_borrow, // https://github.com/rust-lang/rust-clippy/issues/9710
|
9 |
clippy::needless_pass_by_value,
|
10 |
clippy::non_ascii_literal,
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
1 |
#![allow(
|
2 |
clippy::needless_pass_by_value,
|
3 |
clippy::new_ret_no_self,
|
15 |
clippy::must_use_candidate,
|
16 |
clippy::needless_pass_by_value,
|
17 |
clippy::option_if_let_else,
|
1 |
#![allow(clippy::needless_pass_by_value, clippy::useless_let_if_seq)]
|
1 |
#![cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
2 |
#![cfg_attr(feature = "cargo-clippy", allow(range_minus_one))]
|
17 |
clippy::boxed_local,
|
18 |
clippy::needless_pass_by_value,
|
19 |
clippy::large_enum_variant,
|
57 |
clippy::clone_on_ref_ptr,
|
58 |
clippy::needless_pass_by_value
|
59 |
)]
|
63 |
clippy::decimal_literal_representation,
|
64 |
clippy::needless_pass_by_value,
|
65 |
clippy::too_many_arguments
|
2 |
clippy::eq_op,
|
3 |
clippy::needless_pass_by_value,
|
4 |
clippy::toplevel_ref_arg,
|
6 |
clippy::float_cmp,
|
7 |
clippy::needless_pass_by_value,
|
8 |
clippy::unit_cmp,
|
63 |
clippy::needless_doctest_main,
|
64 |
clippy::needless_pass_by_value,
|
65 |
clippy::new_without_default,
|
24 |
clippy::module_name_repetitions,
|
25 |
clippy::needless_pass_by_value,
|
26 |
clippy::new_without_default,
|
14 |
clippy::module_name_repetitions,
|
15 |
clippy::needless_pass_by_value,
|
16 |
clippy::new_without_default,
|
13 |
clippy::module_name_repetitions,
|
14 |
clippy::needless_pass_by_value,
|
15 |
clippy::new_without_default,
|
6 |
clippy::must_use_candidate,
|
7 |
clippy::needless_pass_by_value
|
8 |
)]
|
3 |
clippy::module_name_repetitions,
|
4 |
clippy::needless_pass_by_value,
|
5 |
clippy::use_self,
|
318 |
clippy::default_trait_access,
|
319 |
clippy::needless_pass_by_value,
|
320 |
clippy::manual_assert
|
1 |
#![warn(clippy::pedantic, clippy::nursery)]
|
2 |
#![allow(clippy::needless_pass_by_value)]
|
3 |
#![doc = include_str!("../README.md")]
|
48 |
clippy::similar_names,
|
49 |
clippy::needless_pass_by_value,
|
50 |
// yet
|
3 |
#![deny(warnings, missing_copy_implementations)]
|
4 |
#![allow(clippy::needless_pass_by_value, clippy::option_map_unwrap_or_else, clippy::option_map_unwrap_or)]
|
5 |
#![warn(
|
4 |
clippy::needless_doctest_main,
|
5 |
clippy::needless_pass_by_value,
|
6 |
clippy::map_unwrap_or
|
2 |
// Clippy lints
|
3 |
#![allow(clippy::needless_pass_by_value, clippy::map_unwrap_or)]
|
4 |
#![warn(
|
43 |
clippy::must_use_candidate,
|
44 |
clippy::needless_pass_by_value,
|
45 |
clippy::similar_names,
|
70 |
clippy::missing_safety_doc,
|
71 |
clippy::needless_pass_by_value,
|
72 |
clippy::option_if_let_else,
|
10 |
#![allow(clippy::needless_pass_by_value)]
|
37 |
clippy::must_use_candidate,
|
38 |
clippy::needless_pass_by_value
|
39 |
)]
|
55 |
#![allow(clippy::needless_pass_by_value)]
|
56 |
#![allow(clippy::large_enum_variant)]
|
2 |
clippy::empty_enum,
|
3 |
clippy::needless_pass_by_value,
|
4 |
clippy::uninlined_format_args
|
1 |
#![allow(clippy::ptr_arg)]
|
2 |
#![allow(clippy::needless_pass_by_value)]
|
3 |
use atomic_immut::AtomicImmut;
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
2 |
use cannyls::deadline::Deadline;
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
2 |
use byteorder::{BigEndian, ByteOrder};
|
1 |
#![warn(rust_2018_idioms, single_use_lifetimes)]
|
2 |
#![allow(clippy::needless_pass_by_value)]
|
3 |
#![allow(clippy::needless_lifetimes)] // broken
|
228 |
clippy::needless_doctest_main,
|
229 |
clippy::needless_pass_by_value,
|
230 |
clippy::single_match_else
|
172 |
clippy::needless_doctest_main,
|
173 |
clippy::needless_pass_by_value,
|
174 |
clippy::too_many_lines
|
21 |
clippy::cognitive_complexity,
|
22 |
clippy::needless_pass_by_value,
|
23 |
clippy::redundant_field_names,
|
1 |
#![warn(clippy::pedantic)]
|
2 |
#![allow(clippy::needless_pass_by_value)]
|
3 |
#![allow(clippy::struct_excessive_bools)]
|
14 |
clippy::must_use_candidate,
|
15 |
clippy::needless_pass_by_value,
|
16 |
clippy::option_option,
|
63 |
clippy::default_trait_access, // fails on output of derive_builder
|
64 |
clippy::needless_pass_by_value, // would stop us creating and passing in LaunchOptions to browser in one statement
|
65 |
clippy::unreadable_literal, // not really applicable for timestamps
|
64 |
clippy::default_trait_access, // fails on output of derive_builder
|
65 |
clippy::needless_pass_by_value, // would stop us creating and passing in LaunchOptions to browser in one statement
|
66 |
clippy::unreadable_literal, // not really applicable for timestamps
|
2 |
#![warn(missing_docs, rust_2018_idioms, clippy::pedantic)]
|
3 |
#![allow(clippy::needless_pass_by_value, clippy::needless_doctest_main)]
|
4 |
#![cfg(any(dim2, dim3))]
|
2 |
#![warn(missing_docs, rust_2018_idioms, clippy::pedantic)]
|
3 |
#![allow(clippy::module_name_repetitions, clippy::needless_pass_by_value)]
|
3 |
#![allow(
|
4 |
clippy::needless_pass_by_value,
|
5 |
clippy::type_complexity,
|
3 |
#![allow(
|
4 |
clippy::needless_pass_by_value,
|
5 |
clippy::type_complexity,
|
5 |
clippy::unused_self,
|
6 |
clippy::needless_pass_by_value // For all the usage of ToString
|
7 |
)]
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
14 |
clippy::missing_inline_in_public_items,
|
15 |
clippy::needless_pass_by_value,
|
16 |
clippy::non_ascii_literal,
|
128 |
clippy::needless_doctest_main,
|
129 |
clippy::needless_pass_by_value,
|
130 |
clippy::trivially_copy_pass_by_ref,
|
77 |
clippy::needless_doctest_main,
|
78 |
clippy::needless_pass_by_value
|
79 |
)]
|
6 |
clippy::missing_errors_doc,
|
7 |
clippy::needless_pass_by_value,
|
8 |
clippy::non_ascii_literal,
|
5 |
// This issue can't be fixed, due to a limitation of actix-web's API. Actix-web's API doesn't currently allow creating acceptors that use &HttpRequest instead of HttpRequest.
|
6 |
#![allow(clippy::needless_pass_by_value)]
|
1 |
// Look in lib.rs for justification.
|
2 |
#![allow(clippy::needless_pass_by_value)]
|
8 |
)]
|
9 |
#![allow(clippy::needless_pass_by_value)]
|
10 |
#![allow(clippy::transmute_ptr_to_ptr)]
|
656 |
{
|
657 |
#![allow(clippy::needless_pass_by_value)]
|
658 |
unsafe {
|
706 |
{
|
707 |
#![allow(clippy::needless_pass_by_value)]
|
708 |
if let Some(fat_handler) = Self::validate_fat_handler(&self.fat_handlers.borrow().stanza, handler_id.0 as _) {
|
764 |
{
|
765 |
#![allow(clippy::needless_pass_by_value)]
|
766 |
unsafe {
|
2 |
clippy::cast_possible_truncation, // https://github.com/rust-lang/rust-clippy/issues/7486
|
3 |
clippy::needless_pass_by_value,
|
4 |
clippy::too_many_lines,
|
3 |
#![allow(
|
4 |
clippy::needless_pass_by_value,
|
5 |
clippy::match_bool,
|
10 |
allow(single_match, match_same_arms, match_ref_pats,
|
11 |
clone_on_ref_ptr, needless_pass_by_value))]
|
12 |
#![cfg_attr(feature = "cargo-clippy",
|
16 |
#![allow(clippy::single_match, clippy::match_same_arms, clippy::match_ref_pats,
|
17 |
clippy::clone_on_ref_ptr, clippy::needless_pass_by_value)]
|
18 |
#![deny(clippy::wrong_pub_self_convention, clippy::used_underscore_binding,
|
164 |
#![allow(clippy::single_match, clippy::match_same_arms, clippy::match_ref_pats,
|
165 |
clippy::clone_on_ref_ptr, clippy::needless_pass_by_value)]
|
166 |
#![deny(clippy::wrong_pub_self_convention, clippy::used_underscore_binding,
|
3 |
#![cfg_attr(feature = "cargo-clippy", allow(needless_borrowed_reference))]
|
4 |
#![cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
3 |
// lifetimes outweighs the marginal gains from explicit borrowing
|
4 |
#![allow(clippy::needless_pass_by_value)]
|
3 |
// lifetimes outweighs the marginal gains from explicit borrowing
|
4 |
#![allow(clippy::needless_pass_by_value)]
|
63 |
clippy::default_trait_access, // fails on output of derive_builder
|
64 |
clippy::needless_pass_by_value, // would stop us creating and passing in LaunchOptions to browser in one statement
|
65 |
clippy::unreadable_literal, // not really applicable for timestamps
|
10 |
allow(single_match, match_same_arms, match_ref_pats,
|
11 |
clone_on_ref_ptr, needless_pass_by_value))]
|
12 |
#![cfg_attr(feature = "cargo-clippy",
|
10 |
allow(single_match, match_same_arms, match_ref_pats,
|
11 |
clone_on_ref_ptr, needless_pass_by_value))]
|
12 |
#![cfg_attr(feature = "cargo-clippy",
|
2 |
clippy::module_name_repetitions,
|
3 |
clippy::needless_pass_by_value,
|
4 |
clippy::unseparated_literal_suffix
|
2 |
clippy::module_name_repetitions,
|
3 |
clippy::needless_pass_by_value,
|
4 |
clippy::unseparated_literal_suffix
|
2 |
clippy::module_name_repetitions,
|
3 |
clippy::needless_pass_by_value,
|
4 |
clippy::unseparated_literal_suffix
|
3 |
clippy::manual_range_contains,
|
4 |
clippy::needless_pass_by_value,
|
5 |
clippy::unnecessary_wraps
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::needless_pass_by_value)]
|
3 |
extern crate mpi;
|
2 |
#![allow(clippy::many_single_char_names)]
|
3 |
#![allow(clippy::needless_pass_by_value)]
|
4 |
extern crate mpi;
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::needless_pass_by_value)]
|
3 |
extern crate mpi_fork_fnsp as mpi;
|
2 |
#![allow(clippy::many_single_char_names)]
|
3 |
#![allow(clippy::needless_pass_by_value)]
|
4 |
extern crate mpi_fork_fnsp as mpi;
|
73 |
clippy::missing_inline_in_public_items, clippy::modulo_arithmetic,
|
74 |
clippy::needless_pass_by_value, clippy::redundant_field_names,
|
75 |
clippy::redundant_pattern, clippy::single_match_else,
|
27 |
clippy::indexing_slicing,
|
28 |
clippy::needless_pass_by_value,
|
29 |
clippy::inline_always
|
2 |
#![cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))] // TODO later
|
3 |
#![cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))] // API requirement
|
4 |
#![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))] // API requirement
|
2 |
#![cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))] // TODO later
|
3 |
#![cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))] // API requirement
|
4 |
#![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))] // API requirement
|
41 |
clippy::clone_on_ref_ptr,
|
42 |
clippy::needless_pass_by_value)]
|
43 |
#![deny(clippy::wrong_pub_self_convention, clippy::used_underscore_binding,
|
14 |
clippy::non_ascii_literal,
|
15 |
clippy::needless_pass_by_value
|
16 |
)]
|
1 |
#![allow(clippy::needless_pass_by_value)] // Routes require pass-by-value
|
234 |
clippy::must_use_candidate,
|
235 |
clippy::needless_pass_by_value,
|
236 |
clippy::pub_enum_variant_names,
|
27 |
cast_possible_truncation,
|
28 |
needless_pass_by_value,
|
14 |
//! For an overview of what you can do with this crate, check out the `jones` module.
|
15 |
#![cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
16 |
#![allow(dead_code)]
|
333 |
clippy::must_use_candidate,
|
334 |
clippy::needless_pass_by_value,
|
335 |
clippy::similar_names,
|
152 |
clippy::needless_doctest_main,
|
153 |
clippy::needless_pass_by_value,
|
154 |
clippy::too_many_lines,
|
117 |
#![allow(
|
118 |
clippy::needless_pass_by_value,
|
119 |
clippy::new_without_default,
|
117 |
#![allow(
|
118 |
clippy::needless_pass_by_value,
|
119 |
clippy::new_without_default,
|
30 |
)]
|
31 |
#![allow(clippy::needless_pass_by_value)]
|
15 |
clippy::must_use_candidate,
|
16 |
clippy::needless_pass_by_value,
|
17 |
clippy::range_plus_one,
|
12 |
clippy::must_use_candidate,
|
13 |
clippy::needless_pass_by_value,
|
14 |
clippy::range_plus_one,
|
9 |
clippy::must_use_candidate,
|
10 |
clippy::needless_pass_by_value,
|
11 |
clippy::new_without_default,
|
9 |
clippy::must_use_candidate,
|
10 |
clippy::needless_pass_by_value,
|
11 |
clippy::new_without_default,
|
10 |
allow(single_match, match_same_arms, match_ref_pats,
|
11 |
clone_on_ref_ptr, needless_pass_by_value))]
|
12 |
#![cfg_attr(feature = "cargo-clippy",
|
26 |
clippy::manual_assert,
|
27 |
clippy::needless_pass_by_value
|
28 |
)]
|
64 |
// `impl ToString` is better than `&impl ToString`. Clippy is not ready for impl trait.
|
65 |
#![allow(clippy::needless_pass_by_value)]
|
144 |
clippy::module_name_repetitions,
|
145 |
clippy::needless_pass_by_value
|
146 |
)]
|
1 |
#![allow(clippy::needless_pass_by_value, clippy::if_not_else)]
|
327 |
clippy::must_use_candidate,
|
328 |
clippy::needless_pass_by_value,
|
329 |
clippy::new_without_default,
|
1 |
#![allow(
|
2 |
clippy::needless_pass_by_value,
|
3 |
clippy::similar_names,
|
5 |
clippy::if_not_else,
|
6 |
clippy::needless_pass_by_value,
|
7 |
clippy::similar_names,
|
133 |
#![allow(clippy::needless_bool)]
|
134 |
#![allow(clippy::needless_pass_by_value)]
|
135 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
12 |
#![allow(clippy::single_match, clippy::match_same_arms, clippy::match_ref_pats,
|
13 |
clippy::clone_on_ref_ptr, clippy::needless_pass_by_value)]
|
14 |
#![deny(clippy::wrong_pub_self_convention, clippy::used_underscore_binding,
|
1 |
#![cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
68 |
clippy::missing_safety_doc,
|
69 |
clippy::needless_pass_by_value,
|
70 |
clippy::ptr_as_ptr,
|
68 |
clippy::missing_safety_doc,
|
69 |
clippy::needless_pass_by_value,
|
70 |
clippy::ptr_as_ptr,
|
155 |
// FIXME: allow `needless_pass_by_value` until it's OK to change the public API
|
156 |
#![cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
239 |
clippy::needless_doctest_main,
|
240 |
clippy::needless_pass_by_value
|
241 |
)]
|
10 |
clippy::needless_doctest_main,
|
11 |
clippy::needless_pass_by_value
|
12 |
)]
|
6 |
#![forbid(unsafe_code)]
|
7 |
#![allow(clippy::needless_pass_by_value)]
|
8 |
#![allow(clippy::module_name_repetitions)]
|
554 |
mod tests {
|
555 |
#![allow(clippy::needless_pass_by_value)]
|
556 |
use byteorder::{BigEndian, LittleEndian};
|
159 |
clippy::needless_doctest_main,
|
160 |
clippy::needless_pass_by_value,
|
161 |
clippy::redundant_else,
|
35 |
clippy::manual_assert,
|
36 |
clippy::needless_pass_by_value
|
37 |
)]
|
39 |
many_single_char_names,
|
40 |
needless_pass_by_value,
|
41 |
unreadable_literal,
|
1 |
#![allow(clippy::inline_always)]
|
2 |
#![allow(clippy::needless_pass_by_value)]
|
2 |
clippy::eq_op,
|
3 |
clippy::needless_pass_by_value,
|
4 |
clippy::toplevel_ref_arg,
|
134 |
// not practical
|
135 |
needless_pass_by_value,
|
136 |
similar_names,
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
29 |
clippy::match_like_matches_macro,
|
30 |
clippy::needless_pass_by_value,
|
31 |
clippy::too_many_arguments,
|
23 |
clippy::match_like_matches_macro,
|
24 |
clippy::needless_pass_by_value,
|
25 |
clippy::too_many_arguments,
|
323 |
feature = "cargo-clippy",
|
324 |
allow(doc_markdown, needless_pass_by_value)
|
325 |
)]
|
135 |
clippy::module_name_repetitions,
|
136 |
clippy::needless_pass_by_value,
|
137 |
clippy::option_if_let_else,
|
82 |
clippy::module_name_repetitions,
|
83 |
clippy::needless_pass_by_value,
|
84 |
clippy::option_if_let_else,
|
59 |
clippy::module_name_repetitions,
|
60 |
clippy::needless_pass_by_value,
|
61 |
clippy::struct_excessive_bools,
|
1 |
#![cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
2 |
extern crate rand;
|
9 |
clippy::needless_collect,
|
10 |
clippy::needless_pass_by_value,
|
11 |
clippy::option_if_let_else,
|
4 |
// easier to use when using the functions as callback of foreign functions
|
5 |
#![allow(clippy::needless_pass_by_value)]
|
6 |
#![doc = include_str!("../README.md")]
|
28 |
cast_possible_truncation,
|
29 |
needless_pass_by_value,
|
28 |
cast_possible_truncation,
|
29 |
needless_pass_by_value,
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
1 |
#![allow(clippy::needless_pass_by_value)]
|
6 |
#![allow(unreachable_code)]
|
7 |
#![cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
261 |
allow(const_static_lifetime, doc_markdown, large_enum_variant, match_bool,
|
262 |
redundant_closure, needless_pass_by_value))]
|
44 |
clippy::if_not_else,
|
45 |
clippy::needless_pass_by_value,
|
46 |
clippy::suspicious_op_assign_impl,
|
56 |
// N.B. not sure if this rule will break compatibility with older rust versions we might want to support
|
57 |
#![allow(clippy::needless_pass_by_value)]
|
58 |
#![allow(clippy::large_enum_variant)]
|
8 |
unreadable_literal,
|
9 |
needless_pass_by_value,
|
10 |
wrong_self_convention,
|
278 |
clippy::needless_doctest_main,
|
279 |
clippy::needless_pass_by_value,
|
280 |
clippy::never_loop,
|
255 |
clippy::needless_doctest_main,
|
256 |
clippy::needless_pass_by_value,
|
257 |
clippy::never_loop,
|
254 |
clippy::large_enum_variant,
|
255 |
clippy::needless_pass_by_value,
|
256 |
clippy::never_loop,
|
239 |
large_enum_variant,
|
240 |
needless_pass_by_value,
|
241 |
never_loop,
|
34 |
clippy::new_ret_no_self,
|
35 |
clippy::needless_pass_by_value
|
36 |
)]
|
7 |
clippy::map_unwrap_or,
|
8 |
clippy::needless_pass_by_value,
|
9 |
clippy::option_if_let_else,
|
6 |
clippy::map_unwrap_or,
|
7 |
clippy::needless_pass_by_value,
|
8 |
clippy::option_if_let_else,
|
7 |
clippy::map_unwrap_or,
|
8 |
clippy::needless_pass_by_value,
|
9 |
clippy::option_if_let_else,
|
6 |
clippy::map_unwrap_or,
|
7 |
clippy::needless_pass_by_value,
|
8 |
clippy::option_if_let_else,
|
6 |
clippy::must_use_candidate,
|
7 |
clippy::needless_pass_by_value,
|
8 |
clippy::missing_panics_doc,
|
222 |
clippy::must_use_candidate,
|
223 |
clippy::needless_pass_by_value,
|
224 |
clippy::non_ascii_literal,
|
233 |
clippy::must_use_candidate,
|
234 |
clippy::needless_pass_by_value,
|
235 |
clippy::non_ascii_literal,
|
1 |
#![doc = include_str!("../README.md")]
|
2 |
#![allow(clippy::enum_glob_use, clippy::needless_pass_by_value)]
|
9 |
clippy::future_not_send,
|
10 |
clippy::needless_pass_by_value,
|
11 |
clippy::suboptimal_flops
|
1 |
#![recursion_limit = "256"]
|
2 |
#![allow(clippy::needless_pass_by_value, clippy::single_match_else)]
|
45 |
#![allow(clippy::similar_names)]
|
46 |
#![allow(clippy::needless_pass_by_value)]
|
47 |
#![allow(clippy::too_many_lines)]
|
15 |
#![allow(clippy::needless_pass_by_value)]
|
15 |
#![allow(clippy::needless_pass_by_value)]
|
4 |
clippy::new_ret_no_self,
|
5 |
clippy::needless_pass_by_value,
|
6 |
clippy::redundant_closure
|
80 |
// TODO REMOVE
|
81 |
#![allow(clippy::needless_pass_by_value)]
|
79 |
#![doc = include_str!("../README.md")]
|
80 |
#![allow(clippy::needless_pass_by_value)]
|
80 |
// TODO REMOVE
|
81 |
#![allow(clippy::needless_pass_by_value)]
|
82 |
#[macro_use]
|
80 |
// TODO REMOVE
|
81 |
#![allow(clippy::needless_pass_by_value)]
|
80 |
// TODO REMOVE
|
81 |
#![allow(clippy::needless_pass_by_value)]
|
208 |
mod tests {
|
209 |
#![allow(clippy::needless_pass_by_value)]
|
2 |
#![allow(unused)]
|
3 |
#![cfg_attr(feature="cargo-clippy",allow(needless_pass_by_value,cast_lossless,identity_op))]
|
4 |
use futures::future::{err, ok, Future};
|
1 |
#![cfg_attr(feature="cargo-clippy", allow(collapsible_if,needless_pass_by_value))]
|
1 |
#![cfg_attr(feature="cargo-clippy",allow(needless_pass_by_value,cast_lossless,identity_op))]
|
2 |
use futures::future::{err, ok, Future};
|
24 |
clippy::match_bool,
|
25 |
clippy::needless_pass_by_value,
|
26 |
clippy::new_without_default,
|
17 |
clippy::needless_bool,
|
18 |
clippy::needless_pass_by_value,
|
19 |
clippy::ptr_arg
|