181 |
/// This function panics if the actix system is already running.
|
182 |
#[allow(clippy::unit_arg)]
|
183 |
pub fn run<R>(f: R) -> std::io::Result<()>
|
267 |
.trace_scene_to_string::<CharacterBuf>(&self.camera, "\n");
|
268 |
#[allow(clippy::unit_arg)]
|
269 |
let image_fresh = SpaceRaytracer::<CharacterRtData>::new(
|
63 |
b.iter(|| {
|
64 |
#[allow(clippy::unit_arg)]
|
65 |
criterion::black_box(for batch in &batches {
|
587 |
#[async_trait]
|
588 |
#[allow(clippy::unit_arg)]
|
589 |
impl ServerLogic for TestServer {
|
175 |
// https://github.com/rust-lang/rust-clippy/issues/6447
|
176 |
#[allow(clippy::unit_arg)]
|
177 |
<Vec<NonZeroU16>>::read_options(reader, &options, args).map(|chars| chars.into())
|
206 |
// https://github.com/rust-lang/rust-clippy/issues/6447
|
207 |
#[allow(clippy::unit_arg)]
|
208 |
<Vec<NonZeroU8>>::read_options(reader, options, args).map(|chars| chars.into())
|
354 |
/// this beaviour must be explicitly specified in options with prefix = "" and/or tag_name = "".
|
355 |
#[allow(clippy::unit_arg)]
|
356 |
pub fn put_with_options<F>(
|
836 |
#[cfg(not(feature = "vm"))]
|
837 |
#[allow(clippy::unit_arg, clippy::drop_copy)]
|
838 |
#[inline]
|
876 |
#[cfg(feature = "vm")]
|
877 |
#[allow(clippy::unit_arg, clippy::drop_copy)]
|
878 |
pub fn eval<T: AsRef<[u8]>>(&mut self, src: T) -> JsResult<JsValue> {
|
127 |
/// If the interpreter fails parsing an error value is returned instead (error object)
|
128 |
#[allow(clippy::unit_arg, clippy::drop_copy)]
|
129 |
#[cfg(test)]
|
652 |
/// ```
|
653 |
#[allow(clippy::unit_arg, clippy::drop_copy)]
|
654 |
pub fn eval<S>(&mut self, src: S) -> JsResult<JsValue>
|
130 |
/// If the interpreter fails parsing an error value is returned instead (error object)
|
131 |
#[allow(clippy::unit_arg, clippy::drop_copy)]
|
132 |
#[cfg(test)]
|
958 |
fn test_unit() {
|
959 |
#[allow(clippy::unit_arg)]
|
960 |
ensure_static(().to_static());
|
83 |
#[allow(clippy::unit_arg)]
|
84 |
#[async_trait]
|
8 |
#[allow(clippy::unit_arg)]
|
9 |
fn drgraph(c: &mut Criterion) {
|
46 |
#[allow(clippy::unit_arg)]
|
47 |
fn parents_loop_benchmark(c: &mut Criterion) {
|
280 |
if size == 0 {
|
281 |
#[allow(clippy::unit_arg)]
|
282 |
return Ok(unlikely_empty_size_result());
|
179 |
#[allow(clippy::unit_arg)]
|
180 |
RestoreState(_critical_section_1_0_acquire())
|
196 |
#[allow(clippy::unit_arg)]
|
197 |
_critical_section_1_0_release(restore_state.0)
|
15 |
pub fn for_each<'a, T: Traversable + ?Sized + 'a>(&'a self, mut f: impl FnMut(&'a T)) {
|
16 |
#[allow(clippy::unit_arg)]
|
17 |
self.try_for_each(|e| Ok(f(e)))
|
29 |
#[test]
|
30 |
#[allow(clippy::unit_arg)]
|
31 |
#[allow(clippy::unit_cmp)]
|
365 |
// until the proxy thread is ready for the next event.
|
366 |
#[allow(clippy::unit_arg)]
|
367 |
pub fn handle_requests(
|
1181 |
// gratuituous, but I don't understand it.
|
1182 |
#[allow(clippy::unit_arg)]
|
1183 |
match self.over {
|
500 |
#[allow(clippy::unit_arg)]
|
501 |
impl asset_hub::Server for AssetHubImpl {
|
620 |
#[allow(clippy::unit_arg)]
|
621 |
impl asset_hub::snapshot::Server for AssetHubSnapshotImpl {
|
531 |
#[allow(clippy::unit_arg)] // Recommended by documentation
|
532 |
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> {
|
128 |
let key_str = key.as_ref();
|
129 |
#[allow(clippy::unit_arg)]
|
130 |
match self.find_idx(key_str) {
|
48 |
self.data = &[];
|
49 |
#[allow(clippy::unit_arg)]
|
50 |
Some(Err(nom::Err::Error(crate::decode::ParseError::from_error_kind(
|
147 |
) -> Result<(), Self::Error> {
|
148 |
#[allow(clippy::unit_arg)]
|
149 |
Ok((self)(ctx, arg))
|
70 |
{
|
71 |
#[allow(clippy::unit_arg)]
|
72 |
l.foldr(
|
181 |
#[test]
|
182 |
#[allow(clippy::unit_arg)]
|
183 |
fn test_unit_serialisation() {
|
1 |
#[allow(unused_imports, clippy::unit_arg, clippy::assertions_on_constants)]
|
2 |
#[cfg(test)]
|
296 |
#[allow(clippy::unit_arg)]
|
297 |
async fn run<'a, Shared, Event, Run, Return>(
|
155 |
#[allow(clippy::unit_arg)]
|
156 |
fn read(body: Space<'a>, parameter: Self::ReadParameter) -> Option<Self::ReadHandle> {
|
17 |
#[allow(clippy::unit_arg)]
|
18 |
fn bench_map_allocation(c: &mut Criterion) {
|
58 |
#[allow(clippy::unit_arg)]
|
59 |
fn bench_set_allocation(c: &mut Criterion) {
|
99 |
#[allow(clippy::unit_arg)]
|
100 |
fn bench_vec_no_clone_allocation(c: &mut Criterion) {
|
4 |
clippy::unused_unit,
|
5 |
clippy::unit_arg,
|
6 |
clippy::cyclomatic_complexity,
|
52 |
} else if return_type.equals::<()>() {
|
53 |
#[allow(clippy::unit_arg)]
|
54 |
runtime
|
153 |
// we need to hook the ingress node in between us and our remote parent
|
154 |
#[allow(clippy::unit_arg)]
|
155 |
#[allow(clippy::let_unit_value)]
|
244 |
// we need to hook the egress in between the ingress and its "real" parent
|
245 |
#[allow(clippy::unit_arg)]
|
246 |
#[allow(clippy::let_unit_value)]
|
78 |
} else {
|
79 |
#[allow(clippy::unit_arg)] // Sometimes Id is (), sometimes it isn’t.
|
80 |
imp::register_uptime(self.deadline, self.id, context.waker());
|
87 |
fn drop(&mut self) {
|
88 |
#[allow(clippy::unit_arg)] // Sometimes Id is (), sometimes it isn’t.
|
89 |
imp::unregister_uptime(self.deadline, self.id);
|
105 |
} else {
|
106 |
#[allow(clippy::unit_arg)] // Sometimes Id is (), sometimes it isn’t.
|
107 |
imp::register_signal(self.id, context.waker());
|
114 |
fn drop(&mut self) {
|
115 |
#[allow(clippy::unit_arg)] // Sometimes Id is (), sometimes it isn’t.
|
116 |
imp::unregister_signal(self.id);
|
1245 |
#[bench]
|
1246 |
#[allow(clippy::unit_arg)]
|
1247 |
fn bench_distance_255(b: &mut Bencher) {
|
524 |
#[allow(clippy::unit_arg)]
|
525 |
fn new_service(&self, cfg: Self::Config) -> Self::Future {
|
557 |
#[allow(clippy::unit_arg)]
|
558 |
fn new_service(&self, cfg: Self::Config) -> Self::Future {
|
107 |
#[allow(clippy::unit_arg)]
|
108 |
fn execute_instruction(
|
173 |
#[allow(clippy::unit_arg)]
|
174 |
fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output> {
|
62 |
// metadata_resolver is guaranteed to be (), but it's better to be explicit about it
|
63 |
#[allow(clippy::unit_arg)]
|
64 |
c_str.resolve_unsized(pos + fp, resolver.pos, resolver.metadata_resolver, fo);
|
377 |
// resolver is guaranteed to be (), but it's better to be explicit about it
|
378 |
#[allow(clippy::unit_arg)]
|
379 |
ipv4_addr.resolve(pos + fp, resolver, fo);
|
386 |
// resolver is guaranteed to be (), but it's better to be explicit about it
|
387 |
#[allow(clippy::unit_arg)]
|
388 |
ipv6_addr.resolve(pos + fp, resolver, fo);
|
659 |
// resolver is guaranteed to be (), but it's better to be explicit about it
|
660 |
#[allow(clippy::unit_arg)]
|
661 |
socket_addr.resolve(pos + fp, resolver, fo);
|
668 |
// resolver is guaranteed to be (), but it's better to be explicit about it
|
669 |
#[allow(clippy::unit_arg)]
|
670 |
socket_addr.resolve(pos + fp, resolver, fo);
|
62 |
// metadata_resolver is guaranteed to be (), but it's better to be explicit about it
|
63 |
#[allow(clippy::unit_arg)]
|
64 |
c_str.resolve_unsized(pos + fp, resolver.pos, resolver.metadata_resolver, fo);
|
377 |
// resolver is guaranteed to be (), but it's better to be explicit about it
|
378 |
#[allow(clippy::unit_arg)]
|
379 |
ipv4_addr.resolve(pos + fp, resolver, fo);
|
386 |
// resolver is guaranteed to be (), but it's better to be explicit about it
|
387 |
#[allow(clippy::unit_arg)]
|
388 |
ipv6_addr.resolve(pos + fp, resolver, fo);
|
659 |
// resolver is guaranteed to be (), but it's better to be explicit about it
|
660 |
#[allow(clippy::unit_arg)]
|
661 |
socket_addr.resolve(pos + fp, resolver, fo);
|
668 |
// resolver is guaranteed to be (), but it's better to be explicit about it
|
669 |
#[allow(clippy::unit_arg)]
|
670 |
socket_addr.resolve(pos + fp, resolver, fo);
|
132 |
#[allow(clippy::unit_arg)]
|
133 |
value.resolve(pos + fp, (), fo);
|
280 |
if out.is_empty() {
|
281 |
#[allow(clippy::unit_arg)]
|
282 |
Err(nom::Err::Error(NomError::from_error_kind(input, nom::error::ErrorKind::TakeWhile1)))
|
59 |
#[allow(clippy::unit_arg)]
|
60 |
impl Piece for () {
|
279 |
/// Similar to `set_value`.
|
280 |
#[allow(clippy::unit_arg)]
|
281 |
pub fn set_checked(target: &web_sys::EventTarget, value: bool) -> Result<(), Cow<str>> {
|
97 |
#[bench]
|
98 |
#[allow(clippy::unit_arg)]
|
99 |
fn bench_packet_clone(bencher: &mut Bencher) {
|
94 |
#[allow(clippy::unit_arg)]
|
95 |
fn run_listener(self, socket: UnixListener) -> Result<(), Box<dyn Error + Send + Sync>> {
|
103 |
#[allow(clippy::unit_arg)]
|
104 |
fn run_tcp(self, addr: &str) -> Result<(), Box<dyn Error + Send + Sync>> {
|
109 |
#[allow(clippy::unit_arg)]
|
110 |
fn listen(self, socket: service_binding::Listener) -> Result<(), Box<dyn Error + Send + Sync>> {
|
8 |
#[allow(clippy::unit_arg)]
|
9 |
fn drgraph(c: &mut Criterion) {
|
46 |
#[allow(clippy::unit_arg)]
|
47 |
fn parents_loop_benchmark(c: &mut Criterion) {
|
46 |
/// Disconnect the sender.
|
47 |
#[allow(clippy::unit_arg)]
|
48 |
fn disconnect(self) -> Result<(), Self::Err> {
|
117 |
#[allow(clippy::unit_arg)]
|
118 |
let result = match matches.subcommand() {
|
285 |
#[allow(clippy::unit_arg)]
|
286 |
unsafe fn resolve(&self, pos: usize, resolver: Self::Resolver, out: *mut Self::Archived) {
|
230 |
#[allow(clippy::unit_arg)]
|
231 |
fn set<'a>(url: &'a mut Url, attr: &str, new: &str) {
|
1 |
#[allow(clippy::unit_arg)]
|
2 |
mod any;
|
1 |
#![allow(clippy::unit_arg)]
|
2 |
#[macro_use]
|
13 |
clippy::too_many_lines,
|
14 |
clippy::unit_arg,
|
15 |
clippy::while_immutable_condition,
|
4 |
#![allow(clippy::unit_arg)]
|
4 |
// For some reason deriving `Arbitrary` results in clippy firing a `unit_arg` violation
|
5 |
#![allow(clippy::unit_arg)]
|
4 |
// For some reason deriving `Arbitrary` results in clippy firing a `unit_arg` violation
|
5 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::many_single_char_names)]
|
2 |
#![allow(clippy::unit_arg)]
|
3 |
// may occur if no backends are selected
|
1 |
#![allow(clippy::unit_arg)]
|
2 |
/// NOTE: Some tests in this module are time-sensitive.
|
1 |
#![allow(clippy::let_unit_value)]
|
2 |
#![allow(clippy::unit_arg)]
|
3 |
#![warn(missing_docs)]
|
90 |
#![deny(clippy::cargo)]
|
91 |
#![allow(clippy::unit_arg)]
|
90 |
#![deny(clippy::cargo)]
|
91 |
#![allow(clippy::unit_arg)]
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::unit_arg)]
|
1 |
// Necessary for implementing atomic methods for `AtomicUnit`
|
2 |
#![allow(clippy::unit_arg)]
|
4 |
#![allow(clippy::unit_arg)]
|
15 |
//! `dlt` contains data structures for DLT messages and related types
|
16 |
#![allow(clippy::unit_arg)]
|
1 |
#![feature(test)]
|
2 |
#![allow(clippy::unit_arg)]
|
3 |
extern crate test;
|
1 |
#![allow(clippy::let_and_return)]
|
2 |
#![allow(clippy::unit_arg)]
|
3 |
#![allow(clippy::type_complexity)]
|
12 |
// Clippy exclusions
|
13 |
#![allow(clippy::unit_arg)]
|
14 |
#![deny(rustdoc::broken_intra_doc_links)]
|
12 |
// Clippy exclusions
|
13 |
#![allow(clippy::unit_arg)]
|
14 |
#![deny(rustdoc::broken_intra_doc_links)]
|
12 |
// Clippy exclusions
|
13 |
#![allow(clippy::unit_arg)]
|
14 |
#![deny(rustdoc::broken_intra_doc_links)]
|
12 |
// Clippy exclusions
|
13 |
#![allow(clippy::unit_arg)]
|
14 |
#![deny(rustdoc::broken_intra_doc_links)]
|
12 |
// Clippy exclusions
|
13 |
#![allow(clippy::unit_arg)]
|
14 |
#![deny(rustdoc::broken_intra_doc_links)]
|
1 |
#![allow(clippy::unit_arg)]
|
13 |
// Clippy exclusions
|
14 |
#![allow(clippy::unit_arg)]
|
15 |
#![deny(rustdoc::broken_intra_doc_links)]
|
1 |
#![allow(clippy::unit_arg, clippy::blacklisted_name)]
|
1 |
#![allow(clippy::unit_arg, clippy::blacklisted_name)]
|
11 |
clippy::type_complexity,
|
12 |
clippy::unit_arg,
|
13 |
clippy::upper_case_acronyms
|
7 |
pub mod v1 {
|
8 |
#![allow(clippy::unit_arg)]
|
9 |
hrpc::include_proto!("protocol.chat.v1");
|
12 |
pub mod all_permissions {
|
13 |
#![allow(clippy::unit_arg)]
|
14 |
hrpc::include_proto!("permissions");
|
24 |
pub mod v1 {
|
25 |
#![allow(clippy::unit_arg)]
|
26 |
hrpc::include_proto!("protocol.auth.v1");
|
7 |
#![allow(clippy::unit_arg)]
|
8 |
#![allow(clippy::useless_format)]
|
7 |
#![allow(clippy::unit_arg)]
|
8 |
#![allow(clippy::useless_format)]
|
18 |
#![allow(clippy::single_char_pattern)]
|
19 |
#![allow(clippy::unit_arg)]
|
20 |
#![allow(clippy::useless_format)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
18 |
#![allow(clippy::type_complexity)]
|
19 |
#![allow(clippy::unit_arg)]
|
20 |
#![allow(clippy::needless_lifetimes)]
|
3 |
#![allow(clippy::unit_arg)]
|
4 |
// For some reason deriving `Arbitrary` results in clippy firing a `unit_arg` violation
|
5 |
#![allow(clippy::unit_arg)]
|
4 |
// For some reason deriving `Arbitrary` results in clippy firing a `unit_arg` violation
|
5 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::let_unit_value)]
|
2 |
#![allow(clippy::unit_arg)]
|
5 |
#![allow(clippy::unused_unit)]
|
6 |
#![allow(clippy::unit_arg)]
|
7 |
#![allow(clippy::module_inception)]
|
11 |
clippy::clippy::redundant_closure,
|
12 |
clippy::unit_arg,
|
13 |
clippy::unnecessary_filter_map,
|
4 |
#![allow(clippy::unit_arg)]
|
5 |
#![allow(clippy::unit_arg)]
|
25 |
#![allow(clippy::too_many_arguments)]
|
26 |
#![allow(clippy::unit_arg)]
|
27 |
#![allow(clippy::upper_case_acronyms)]
|
4 |
// clippy complains about the Arbitrary impl for OutputFormat
|
5 |
#![allow(clippy::unit_arg)]
|
65 |
#![warn(missing_docs, unused_extern_crates, trivial_casts, unused_results)]
|
66 |
#![allow(clippy::unit_arg)]
|
67 |
#![recursion_limit = "128"]
|
6 |
clippy::derivable_impls,
|
7 |
clippy::unit_arg
|
8 |
)]
|
6 |
clippy::derivable_impls,
|
7 |
clippy::unit_arg
|
8 |
)]
|
4 |
#![allow(unused_variables)]
|
5 |
#![allow(clippy::useless_conversion, clippy::unit_arg)]
|
4 |
#![allow(unused_variables)]
|
5 |
#![allow(clippy::useless_conversion, clippy::unit_arg)]
|
4 |
#![allow(clippy::unit_arg)]
|
3 |
//!
|
4 |
#![allow(dead_code, clippy::type_complexity, clippy::unit_arg)]
|
5 |
use std::{
|
1 |
#![allow(clippy::unit_arg)] // want to allow this for `black_box()`
|
2 |
#![cfg(feature = "cluster")]
|
69 |
// #![warn(clippy::undocumented_unsafe_blocks)]
|
70 |
#![allow(clippy::unit_arg)]
|
71 |
#![allow(clippy::missing_errors_doc)]
|
432 |
pub fn run(&self, config: &Config, expand: ExpandAlias) -> Result<()> {
|
433 |
#![allow(clippy::unit_arg)]
|
434 |
use Subcommands::*;
|
18 |
// OptRational, OptFloat, OptComplex
|
19 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
2 |
//! Rysk Core assists in the creation of RISCV virtual machines, providing virtual harts.
|
1 |
#![allow(clippy::unit_arg)]
|
2 |
use atty::Stream;
|
22 |
mod variant {
|
23 |
#![allow(clippy::unit_arg)]
|
24 |
use crate::{error::Error, test};
|
40 |
mod pair {
|
41 |
#![allow(clippy::unit_arg)]
|
42 |
use crate::{error::Error, semantics::Transition, test, Scdlang};
|
1 |
#![allow(clippy::unit_arg)]
|
2 |
mod schema;
|
1 |
#![allow(clippy::unit_arg)]
|
2 |
mod schema;
|
4 |
#![allow(clippy::unit_arg)]
|
5 |
use criterion::{black_box, criterion_group, BatchSize, Bencher, BenchmarkId, Criterion};
|
2 |
//! The module itself would be stored in state as `Box<dyn MyModule>`.
|
3 |
#![allow(clippy::unit_arg)]
|
12 |
// Clippy exclusions
|
13 |
#![allow(clippy::unit_arg)]
|
14 |
#![deny(rustdoc::broken_intra_doc_links)]
|
94 |
#![allow(clippy::option_map_unit_fn)]
|
95 |
#![allow(clippy::unit_arg)]
|
4 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
1 |
#![allow(clippy::unit_arg)]
|
21 |
#![allow(
|
22 |
clippy::unit_arg, // to allow for simple `Ok(x = y)` return values.
|
23 |
clippy::module_name_repetitions, // the core lib does this all over the place
|
1 |
#![allow(
|
2 |
clippy::unit_arg,
|
3 |
clippy::useless_conversion,
|
1 |
#![allow(
|
2 |
clippy::unit_arg,
|
3 |
clippy::useless_conversion,
|
1 |
#![allow(clippy::unit_arg)]
|
2 |
use wll::Result;
|
1 |
#![allow(clippy::unit_arg)]
|
2 |
use wll::{Error, ErrorKind, Result};
|
1 |
#![allow(clippy::unit_arg)]
|
2 |
use wll::Result;
|
340 |
#![allow(unused_variables)]
|
341 |
#![allow(clippy::unit_arg)]
|
342 |
#![allow(clippy::new_ret_no_self)]
|
550 |
#![allow(unused_mut)]
|
551 |
#![allow(clippy::unit_arg)]
|
552 |
#![allow(clippy::too_many_arguments)]
|
611 |
//! Accessible with the `present` cargo feature.
|
612 |
#![allow(clippy::unit_arg)]
|
613 |
include!(concat!(env!("OUT_DIR"), "/present.rs"));
|
620 |
//! Accessible with the `randr` cargo feature.
|
621 |
#![allow(clippy::unit_arg)]
|
622 |
#![allow(clippy::too_many_arguments)]
|
630 |
//! Accessible with the `record` cargo feature.
|
631 |
#![allow(clippy::unit_arg)]
|
632 |
#![allow(clippy::too_many_arguments)]
|
94 |
#![allow(clippy::option_map_unit_fn)]
|
95 |
#![allow(clippy::unit_arg)]
|