24 |
#[allow(clippy::declare_interior_mutable_const)]
|
25 |
const OPAQUE_MUTEX: OpaqueMutex =
|
25 |
#[allow(clippy::declare_interior_mutable_const)]
|
26 |
const OPAQUE_ONCE: OpaqueOnce = OpaqueOnce::new(parking_lot::Once::new(), [0u8; OM_PADDING]);
|
99 |
/// ```
|
100 |
#[allow(clippy::declare_interior_mutable_const)]
|
101 |
pub const NEW: Self = ROnce {
|
24 |
#[allow(clippy::declare_interior_mutable_const)]
|
25 |
const OPAQUE_LOCK: OpaqueRwLock =
|
85 |
#[allow(clippy::declare_interior_mutable_const)]
|
86 |
const LOCK: RMutex<()> = RMutex::new(());
|
302 |
BodySize::Sized(0) => {
|
303 |
#[allow(clippy::declare_interior_mutable_const)]
|
304 |
const HV_ZERO: HeaderValue = HeaderValue::from_static("0");
|
101 |
let mut res = Response::new(StatusCode::METHOD_NOT_ALLOWED);
|
102 |
#[allow(clippy::declare_interior_mutable_const)]
|
103 |
const HV_GET: HeaderValue = HeaderValue::from_static("GET");
|
102 |
pub fn add_content_type(self) -> Self {
|
103 |
#[allow(clippy::declare_interior_mutable_const)]
|
104 |
const HV_MIME: HeaderValue = HeaderValue::from_static("application/octet-stream");
|
55 |
BodySize::Sized(0) => {
|
56 |
#[allow(clippy::declare_interior_mutable_const)]
|
57 |
const HV_ZERO: HeaderValue = HeaderValue::from_static("0");
|
309 |
#[allow(clippy::declare_interior_mutable_const)]
|
310 |
const HV_WEBSOCKET: HeaderValue = HeaderValue::from_static("websocket");
|
313 |
#[allow(clippy::declare_interior_mutable_const)]
|
314 |
const HV_THIRTEEN: HeaderValue = HeaderValue::from_static("13");
|
320 |
#[allow(clippy::declare_interior_mutable_const)]
|
321 |
const UPGRADE: HeaderValue = HeaderValue::from_static("upgrade");
|
322 |
#[allow(clippy::declare_interior_mutable_const)]
|
323 |
const WEBSOCKET: HeaderValue = HeaderValue::from_static("websocket");
|
217 |
let header_value = if size == 0 {
|
218 |
#[allow(clippy::declare_interior_mutable_const)]
|
219 |
const ZERO: HeaderValue = HeaderValue::from_static("0");
|
80 |
#[allow(clippy::declare_interior_mutable_const)]
|
81 |
const UPGRADE: HeaderValue = HeaderValue::from_static("upgrade");
|
82 |
#[allow(clippy::declare_interior_mutable_const)]
|
83 |
const WEBSOCKET: HeaderValue = HeaderValue::from_static("websocket");
|
251 |
#[allow(clippy::declare_interior_mutable_const)]
|
252 |
const UPGRADE: HeaderValue = HeaderValue::from_static("upgrade");
|
253 |
#[allow(clippy::declare_interior_mutable_const)]
|
254 |
const WEBSOCKET: HeaderValue = HeaderValue::from_static("websocket");
|
68 |
/// An empty HTTP body.
|
69 |
#[allow(clippy::declare_interior_mutable_const)]
|
70 |
pub const EMPTY_BODY: bytes::Bytes = bytes::Bytes::from_static(&[]);
|
76 |
/// An empty HTTP body.
|
77 |
#[allow(clippy::declare_interior_mutable_const)]
|
78 |
pub const EMPTY_BODY: bytes::Bytes = bytes::Bytes::new();
|
69 |
/// An empty HTTP body.
|
70 |
#[allow(clippy::declare_interior_mutable_const)]
|
71 |
pub const EMPTY_BODY: bytes::Bytes = bytes::Bytes::new();
|
44 |
/// A value on which `get` may never be called
|
45 |
#[allow(clippy::declare_interior_mutable_const)] // no const fn in traits
|
46 |
const DANGLING: Self;
|
38 |
trait ConstInit {
|
39 |
#[allow(clippy::declare_interior_mutable_const)]
|
40 |
const INIT: Self;
|
53 |
/// See the binaries in this repository for full examples.
|
54 |
#[allow(clippy::declare_interior_mutable_const)]
|
55 |
pub const INIT: Self = <Self as ConstInit>::INIT;
|
45 |
trait ConstInit {
|
46 |
#[allow(clippy::declare_interior_mutable_const)]
|
47 |
const INIT: Self;
|
58 |
impl BumpAlloc {
|
59 |
#[allow(clippy::declare_interior_mutable_const)]
|
60 |
pub const INIT: Self = <Self as ConstInit>::INIT;
|
130 |
#[allow(clippy::declare_interior_mutable_const)]
|
131 |
mod headers {
|
96 |
// this is a very similar case.
|
97 |
#[allow(clippy::declare_interior_mutable_const)]
|
98 |
const NULLPTR: AtomicPtr<Metadata<'static>> = AtomicPtr::new(ptr::null_mut());
|
78 |
/// Creates an uninitialized cache.
|
79 |
#[allow(clippy::declare_interior_mutable_const)]
|
80 |
const fn uninitialized() -> Self {
|
902 |
const LEN: usize = 97;
|
903 |
#[allow(clippy::declare_interior_mutable_const)]
|
904 |
const L: SeqLock = SeqLock::new();
|
17 |
unsafe impl lock_api::RawRwLock for RawRwLock {
|
18 |
#[allow(clippy::declare_interior_mutable_const)]
|
19 |
const INIT: Self = Self {
|
5 |
unsafe impl RawMutex for StdRawMutex {
|
6 |
#[allow(clippy::declare_interior_mutable_const)]
|
7 |
const INIT: Self = Self(std::sync::Mutex::new(()));
|
208 |
#[cfg(feature = "nightly")] // Remove "nightly" condition once 1.64 is out
|
209 |
#[allow(clippy::declare_interior_mutable_const)]
|
210 |
const INIT: Self = Self(std::sync::Mutex::new(()), core::cell::RefCell::new(None));
|
382 |
unsafe impl RawMutex for EspRawMutex {
|
383 |
#[allow(clippy::declare_interior_mutable_const)]
|
384 |
const INIT: Self = Self::new();
|
1082 |
#[allow(clippy::declare_interior_mutable_const)]
|
1083 |
const NO_REFS: AtomicU8 = AtomicU8::new(0);
|
48 |
#[cfg(feature = "nightly")] // Remove "nightly" condition once 1.64 is out
|
49 |
#[allow(clippy::declare_interior_mutable_const)]
|
50 |
const INIT: Self = RawMutex::new();
|
48 |
#[cfg(feature = "nightly")] // Remove "nightly" condition once 1.64 is out
|
49 |
#[allow(clippy::declare_interior_mutable_const)]
|
50 |
const INIT: Self = RawMutex::new();
|
106 |
#[allow(clippy::declare_interior_mutable_const)]
|
107 |
const ATOMIC_FALSE: AtomicBool = AtomicBool::new(false);
|
29 |
#[allow(clippy::declare_interior_mutable_const)] // We init it only once (when `Fontconfig` library init), then read-only
|
30 |
pub const THE_OBJECT_SET: Lazy<ObjectSet> = Lazy::new(|| {
|
30 |
#[allow(clippy::declare_interior_mutable_const)]
|
31 |
const NOTIF: Notification = Notification::new();
|
33 |
#[allow(clippy::declare_interior_mutable_const)]
|
34 |
const PIN_MUTEX: Mutex<Vec<PinChange>> = Mutex::new(Vec::new());
|
35 |
#[allow(clippy::declare_interior_mutable_const)]
|
36 |
const DISPLAY_MUTEX: Mutex<Vec<DisplayChange>> = Mutex::new(Vec::new());
|
206 |
const fn empty() -> Branch {
|
207 |
#[allow(clippy::declare_interior_mutable_const)]
|
208 |
const NONE: AtomicPtr<()> = AtomicPtr::new(ptr::null_mut());
|
16 |
unsafe impl RawMutex for RawSpinMutex {
|
17 |
#[allow(clippy::declare_interior_mutable_const)]
|
18 |
const INIT: Self = Self {
|
17 |
unsafe impl RawMutex for RawTicketMutex {
|
18 |
#[allow(clippy::declare_interior_mutable_const)]
|
19 |
const INIT: Self = Self {
|
197 |
#[ allow (clippy::declare_interior_mutable_const) ]
|
198 |
#[ cfg (feature = "hss-extensions") ]
|
68 |
pub(crate) type SharedWaker = Mutex<RefCell<Option<Waker>>>;
|
69 |
#[allow(clippy::declare_interior_mutable_const)] // Very convenient, and usage for static init deemed OK in clippy docs
|
70 |
pub(crate) const NO_WAKER: SharedWaker = Mutex::new(RefCell::new(None));
|
16 |
unsafe impl RawMutex for RawMutexLock {
|
17 |
#[allow(clippy::declare_interior_mutable_const)]
|
18 |
const INIT: RawMutexLock = RawMutexLock {
|
809 |
impl AcquireState {
|
810 |
#[allow(clippy::declare_interior_mutable_const)]
|
811 |
const INITIAL: AcquireState = AcquireState {
|
39 |
// static items. Can hopefully be replaced with `const fn new() -> Self` at some point.
|
40 |
#[allow(clippy::declare_interior_mutable_const)]
|
41 |
const INIT: Self;
|
48 |
// static items. Can hopefully be replaced with `const fn new() -> Self` at some point.
|
49 |
#[allow(clippy::declare_interior_mutable_const)]
|
50 |
const INIT: Self;
|
78 |
/// Initial value for an unlocked mutex.
|
79 |
#[allow(clippy::declare_interior_mutable_const)]
|
80 |
pub const INIT: Self = RawReentrantMutex {
|
41 |
// static items. Can hopefully be replaced with `const fn new() -> Self` at some point.
|
42 |
#[allow(clippy::declare_interior_mutable_const)]
|
43 |
const INIT: Self;
|
1 |
/// Defines the minimum value of a type.
|
2 |
#[allow(clippy::declare_interior_mutable_const)]
|
3 |
pub trait Min {
|
8 |
/// Defines the maximum value of a type.
|
9 |
#[allow(clippy::declare_interior_mutable_const)]
|
10 |
pub trait Max {
|
1 |
/// Provides the constant 0.
|
2 |
#[allow(clippy::declare_interior_mutable_const)]
|
3 |
pub trait Zero {
|
7 |
/// Provides the constant 1.
|
8 |
#[allow(clippy::declare_interior_mutable_const)]
|
9 |
pub trait One {
|
13 |
/// Provides the constant 2.
|
14 |
#[allow(clippy::declare_interior_mutable_const)]
|
15 |
pub trait Two {
|
19 |
/// Provides the constant -1.
|
20 |
#[allow(clippy::declare_interior_mutable_const)]
|
21 |
pub trait NegativeOne {
|
25 |
/// Provides the constant 1/2.
|
26 |
#[allow(clippy::declare_interior_mutable_const)]
|
27 |
pub trait OneHalf {
|
11 |
// This was stabilized in 1.61, so it can be cleaned up when it becomes the MSRV
|
12 |
#[allow(clippy::declare_interior_mutable_const)]
|
13 |
pub const INIT: RecorderOnceCell = RecorderOnceCell {
|
230 |
#[allow(clippy::declare_interior_mutable_const)]
|
231 |
const LMASK_DEFAULT: CachePadded<Cell<bool>> = CachePadded::new(Cell::new(true));
|
234 |
{
|
235 |
#[allow(clippy::declare_interior_mutable_const)]
|
236 |
const LTAIL_DEFAULT: CachePadded<AtomicUsize> = CachePadded::new(AtomicUsize::new(0));
|
29 |
#[allow(clippy::declare_interior_mutable_const)]
|
30 |
const RLOCK_DEFAULT: CachePadded<AtomicUsize> = CachePadded::new(AtomicUsize::new(0));
|
87 |
// only works with this as a const, but we never actually use it for anything else
|
88 |
#[allow(clippy::declare_interior_mutable_const)]
|
89 |
const SINGLE_SLOT: Atomic<u128> = Atomic::new(0);
|
57 |
#[allow(clippy::declare_interior_mutable_const)]
|
58 |
const ZERO: PayloadLength = PayloadLength::Payload(PayloadType::Payload(PayloadDecoder {
|
421 |
#[allow(clippy::declare_interior_mutable_const)]
|
422 |
const ZERO_CONTENT_LENGTH: HeaderValue = HeaderValue::from_static("0");
|
423 |
#[allow(clippy::declare_interior_mutable_const)]
|
424 |
const KEEP_ALIVE: HeaderName = HeaderName::from_static("keep-alive");
|
425 |
#[allow(clippy::declare_interior_mutable_const)]
|
426 |
const PROXY_CONNECTION: HeaderName = HeaderName::from_static("proxy-connection");
|
244 |
type Error;
|
245 |
#[allow(clippy::declare_interior_mutable_const)]
|
246 |
// https://github.com/rust-lang/rust-clippy/issues/3962#issuecomment-667957112
|
17 |
#[allow(clippy::declare_interior_mutable_const)]
|
18 |
const USER_AGENT_PIPITOR: HeaderValue =
|
31 |
// <https://github.com/rust-lang/rust-clippy/issues/5812>
|
32 |
#[allow(clippy::declare_interior_mutable_const)]
|
33 |
pub const APPLICATION_WWW_FORM_URLENCODED: HeaderValue =
|
35 |
#[cfg(test)]
|
36 |
#[allow(clippy::declare_interior_mutable_const)]
|
37 |
pub const APPLICATION_ATOM_XML: HeaderValue = HeaderValue::from_static("application/atom+xml");
|
20 |
const LEN: usize = 67;
|
21 |
#[allow(clippy::declare_interior_mutable_const)]
|
22 |
const L: CachePadded<SeqLock> = CachePadded::new(SeqLock::new());
|
38 |
// Following lock_api's design
|
39 |
#[allow(clippy::declare_interior_mutable_const)]
|
40 |
const INIT: RawPriorityInheritingLock<S> = RawPriorityInheritingLock::new();
|
401 |
/// The initial value of [`TaskCb::port_task_state`] for all tasks.
|
402 |
#[allow(clippy::declare_interior_mutable_const)] // it's intentional
|
403 |
const PORT_TASK_STATE_INIT: Self::PortTaskState;
|
128 |
impl<Traits: PortThreading> Init for MutexCb<Traits> {
|
129 |
#[allow(clippy::declare_interior_mutable_const)]
|
130 |
const INIT: Self = Self {
|
113 |
impl<Traits: Port> Init for SemaphoreCb<Traits> {
|
114 |
#[allow(clippy::declare_interior_mutable_const)]
|
115 |
const INIT: Self = Self {
|
211 |
{
|
212 |
#[allow(clippy::declare_interior_mutable_const)]
|
213 |
const INIT: Self = Self { link: Init::INIT };
|
423 |
impl<Traits: KernelTraits> Init for Timeout<Traits> {
|
424 |
#[allow(clippy::declare_interior_mutable_const)]
|
425 |
const INIT: Self = Self {
|
115 |
impl<Traits: KernelTraits> Init for TimerCb<Traits> {
|
116 |
#[allow(clippy::declare_interior_mutable_const)]
|
117 |
const INIT: Self = Self {
|
178 |
impl<Traits: PortThreading> Init for WaitQueue<Traits> {
|
179 |
#[allow(clippy::declare_interior_mutable_const)]
|
180 |
const INIT: Self = Self {
|
220 |
impl<Traits: PortThreading> Init for TaskWait<Traits> {
|
221 |
#[allow(clippy::declare_interior_mutable_const)]
|
222 |
const INIT: Self = Self {
|
38 |
impl Init for State {
|
39 |
#[allow(clippy::declare_interior_mutable_const)]
|
40 |
const INIT: Self = Self {
|
55 |
impl Init for TaskState {
|
56 |
#[allow(clippy::declare_interior_mutable_const)] // it's intentional
|
57 |
const INIT: Self = Self {
|
57 |
impl Init for State {
|
58 |
#[allow(clippy::declare_interior_mutable_const)]
|
59 |
const INIT: Self = Self {
|
72 |
impl Init for TaskState {
|
73 |
#[allow(clippy::declare_interior_mutable_const)] // it's intentional
|
74 |
const INIT: Self = Self {
|
217 |
impl Init for TaskState {
|
218 |
#[allow(clippy::declare_interior_mutable_const)] // it's intentional
|
219 |
const INIT: Self = Self {
|
115 |
impl Init for TaskState {
|
116 |
#[allow(clippy::declare_interior_mutable_const)]
|
117 |
const INIT: Self = Self::new();
|
89 |
const LEN: usize = 787;
|
90 |
#[allow(clippy::declare_interior_mutable_const)]
|
91 |
const LCK: HokmaLock = HokmaLock::new();
|
49 |
impl<Options: GlobalTlsfOptions> ConstDefault for GlobalTlsf<Options> {
|
50 |
#[allow(clippy::declare_interior_mutable_const)]
|
51 |
const DEFAULT: Self = Self::new();
|
147 |
// allow since there is usually no interior mutability because states are enums
|
148 |
#[allow(clippy::declare_interior_mutable_const)]
|
149 |
const INITIAL_STATE: Self::State;
|
81 |
/// Creates an uninitialized cache.
|
82 |
#[allow(clippy::declare_interior_mutable_const)]
|
83 |
const fn uninitialized() -> Self {
|
81 |
/// Creates an uninitialized cache.
|
82 |
#[allow(clippy::declare_interior_mutable_const)]
|
83 |
const fn uninitialized() -> Self {
|
81 |
/// Creates an uninitialized cache.
|
82 |
#[allow(clippy::declare_interior_mutable_const)]
|
83 |
const fn uninitialized() -> Self {
|
81 |
/// Creates an uninitialized cache.
|
82 |
#[allow(clippy::declare_interior_mutable_const)]
|
83 |
const fn uninitialized() -> Self {
|
11 |
unsafe impl RawMutex for RawCellMutex {
|
12 |
#[allow(clippy::declare_interior_mutable_const)]
|
13 |
const INIT: Self = RawCellMutex {
|
61 |
unsafe impl RawRwLock for RawCellRwLock {
|
62 |
#[allow(clippy::declare_interior_mutable_const)]
|
63 |
const INIT: Self = RawCellRwLock {
|
20 |
impl<R: RawMutex, G: GetThreadId> RawThreadMutex<R, G> {
|
21 |
#[allow(clippy::declare_interior_mutable_const)]
|
22 |
pub const INIT: Self = RawThreadMutex {
|
57 |
#[allow(clippy::declare_interior_mutable_const)]
|
58 |
fn try_into_header_value(self) -> Result<HeaderValue, Self::Error> {
|
125 |
impl ItemPerHart {
|
126 |
#[allow(clippy::declare_interior_mutable_const)]
|
127 |
const ZERO: Self = Self {
|
133 |
#[doc(hidden)]
|
134 |
#[allow(clippy::declare_interior_mutable_const)] // This is exactly needed here
|
135 |
pub const MUTEXRC_INIT: RawMutexRc = RawMutexRc(RawMutex::INIT, UnsafeCell::new(0));
|
103 |
#[allow(clippy::declare_interior_mutable_const)]
|
104 |
pub trait MathConsts {
|
358 |
/// Initialization constant of [`Once`].
|
359 |
#[allow(clippy::declare_interior_mutable_const)]
|
360 |
pub const INIT: Self = Self {
|
75 |
pub(crate) const VALUE_STR_A_VALUE_PTR: AValueHeader = {
|
76 |
#[allow(clippy::declare_interior_mutable_const)]
|
77 |
const VTABLE: AValueImpl<Direct, StarlarkStr> =
|
106 |
#[allow(clippy::declare_interior_mutable_const)]
|
107 |
/// This object is only used to for const initialization
|
318 |
#[allow(clippy::declare_interior_mutable_const)]
|
319 |
/// This object is only used to be copied
|
106 |
#[allow(clippy::declare_interior_mutable_const)]
|
107 |
/// This object is only used to for const initialization
|
318 |
#[allow(clippy::declare_interior_mutable_const)]
|
319 |
/// This object is only used to be copied
|
81 |
/// Creates an uninitialized cache.
|
82 |
#[allow(clippy::declare_interior_mutable_const)]
|
83 |
const fn uninitialized() -> Self {
|
13 |
#[allow(clippy::declare_interior_mutable_const)]
|
14 |
const ALLOWED_METHODS: HeaderValue = HeaderValue::from_static("GET, PUT, POST, PATCH, DELETE");
|
15 |
#[allow(clippy::declare_interior_mutable_const)]
|
16 |
const ALLOWED_HEADERS: HeaderValue = HeaderValue::from_static(
|
18 |
);
|
19 |
#[allow(clippy::declare_interior_mutable_const)]
|
20 |
const ALLOW_CREDENTIALS: HeaderValue = HeaderValue::from_static("true");
|
21 |
#[allow(clippy::declare_interior_mutable_const)]
|
22 |
const MAX_AGE: HeaderValue = HeaderValue::from_static("3600");
|
348 |
#[allow(clippy::declare_interior_mutable_const)]
|
349 |
const TEXT_PLAIN: HeaderValue = HeaderValue::from_static("text/plain; charset=utf-8");
|
48 |
) -> Option<(HeaderName, HeaderValue)> {
|
49 |
#[allow(clippy::declare_interior_mutable_const)]
|
50 |
const TRUE: HeaderValue = HeaderValue::from_static("true");
|
98 |
#[allow(clippy::declare_interior_mutable_const)]
|
99 |
const WILDCARD: HeaderValue = HeaderValue::from_static("*");
|
101 |
#[allow(clippy::declare_interior_mutable_const)]
|
102 |
const TEXT_PLAIN: HeaderValue = HeaderValue::from_static("text/plain; charset=utf-8");
|
25 |
/// See [`Self::use_default_on_uninit`].
|
26 |
#[allow(clippy::declare_interior_mutable_const)]
|
27 |
pub const USE_DEFAULT_ON_UNINIT: Self = Self {
|
64 |
/// A default path for docs
|
65 |
#[allow(clippy::declare_interior_mutable_const)]
|
66 |
pub const DOC_PATH: Lazy<Path> = Lazy::new(|| parse_str::<Path>("doc").expect("must parse doc path"));
|
710 |
// This is a false-positive, we only use this const for static initialization.
|
711 |
#[allow(clippy::declare_interior_mutable_const)]
|
712 |
const EMPTY_POOL: Pool<S> = Pool {
|
32 |
static SAFE_LOGGABLE: Lazy<HeaderName> = Lazy::new(|| HeaderName::from_static("safe-loggable"));
|
33 |
#[allow(clippy::declare_interior_mutable_const)]
|
34 |
const TRUE_VALUE: HeaderValue = HeaderValue::from_static("true");
|
35 |
#[allow(clippy::declare_interior_mutable_const)]
|
36 |
const FALSE_VALUE: HeaderValue = HeaderValue::from_static("false");
|
21 |
#[allow(clippy::declare_interior_mutable_const)]
|
22 |
const APPLICATION_JSON: HeaderValue = HeaderValue::from_static("application/json");
|
25 |
static DEPRECATION: Lazy<HeaderName> = Lazy::new(|| HeaderName::from_static("deprecation"));
|
26 |
#[allow(clippy::declare_interior_mutable_const)]
|
27 |
const IS_DEPRECATED: HeaderValue = HeaderValue::from_static("true");
|
46 |
#[allow(clippy::declare_interior_mutable_const)]
|
47 |
const GZIP: HeaderValue = HeaderValue::from_static("gzip");
|
23 |
#[allow(clippy::declare_interior_mutable_const)]
|
24 |
const DO_NOT_CACHE: HeaderValue = HeaderValue::from_static("no-cache, no-store, must-revalidate");
|
27 |
#[allow(clippy::declare_interior_mutable_const)]
|
28 |
const CONTENT_SECURITY_POLICY_VALUE: HeaderValue = HeaderValue::from_static(
|
30 |
);
|
31 |
#[allow(clippy::declare_interior_mutable_const)]
|
32 |
const REFERRER_POLICY_VALUE: HeaderValue =
|
33 |
HeaderValue::from_static("strict-origin-when-cross-origin");
|
34 |
#[allow(clippy::declare_interior_mutable_const)]
|
35 |
const X_CONTENT_TYPE_OPTIONS_VALUE: HeaderValue = HeaderValue::from_static("nosniff");
|
36 |
#[allow(clippy::declare_interior_mutable_const)]
|
37 |
const X_FRAME_OPTIONS_VALUE: HeaderValue = HeaderValue::from_static("sameorigin");
|
48 |
/// to be editable.
|
49 |
#[allow(clippy::declare_interior_mutable_const)]
|
50 |
pub const DEFAULT: Shader =
|
14 |
#[allow(clippy::declare_interior_mutable_const)]
|
15 |
pub trait KiError: Error + PartialEq + Clone {
|
44 |
/// to be editable.
|
45 |
#[allow(clippy::declare_interior_mutable_const)]
|
46 |
pub const DEFAULT: Shader =
|
42 |
// UInt can not have interior mutability
|
43 |
#[allow(clippy::declare_interior_mutable_const)]
|
44 |
// HACK: Ideally we'd use MontgomeryParameters<UInt: FieldUInt>
|
85 |
// UInt can not have interior mutability
|
86 |
#[allow(clippy::declare_interior_mutable_const)]
|
87 |
pub const MODULUS: P::UInt = P::MODULUS;
|
276 |
// `T` can not have interior mutability.
|
277 |
#[allow(clippy::declare_interior_mutable_const)]
|
278 |
pub trait MontgomeryParameters: 'static + Send + Sync + Sized {
|
3 |
// declaring new header consts will yield this error
|
4 |
#![allow(clippy::declare_interior_mutable_const)]
|
51 |
// allow this because Constdef can also be used for statics
|
52 |
#![allow(clippy::declare_interior_mutable_const)]
|
53 |
use crate::Constdef;
|
12 |
#![allow(
|
13 |
clippy::declare_interior_mutable_const,
|
14 |
clippy::type_complexity,
|
21 |
#![allow(
|
22 |
clippy::declare_interior_mutable_const,
|
23 |
clippy::borrow_interior_mutable_const
|
51 |
// allow this because Constdef can also be used for statics
|
52 |
#![allow(clippy::declare_interior_mutable_const)]
|
53 |
use crate::Constdef;
|
377 |
clippy::cognitive_complexity,
|
378 |
clippy::declare_interior_mutable_const,
|
379 |
clippy::doc_markdown,
|
1 |
#![allow(clippy::declare_interior_mutable_const)] // see tokio#4872
|
3 |
#![allow(
|
4 |
clippy::declare_interior_mutable_const,
|
5 |
clippy::borrow_interior_mutable_const
|
8 |
clippy::unreadable_literal,
|
9 |
clippy::declare_interior_mutable_const
|
10 |
)]
|
1 |
#![allow(clippy::declare_interior_mutable_const)] // Usage is legit in this module.
|
271 |
#![allow(
|
272 |
clippy::declare_interior_mutable_const,
|
273 |
clippy::collapsible_if,
|
1 |
#![allow(clippy::declare_interior_mutable_const, clippy::type_complexity)]
|
8 |
#![deny(missing_docs)]
|
9 |
#![allow(clippy::declare_interior_mutable_const)]
|
10 |
#![allow(clippy::borrow_interior_mutable_const)]
|
1 |
#![allow(clippy::declare_interior_mutable_const)]
|
1 |
#![allow(clippy::declare_interior_mutable_const)]
|
2 |
use ntex_http::{HeaderName, HeaderValue};
|
1 |
#![cfg_attr(not(feature = "std"), no_std)]
|
2 |
#![allow(clippy::declare_interior_mutable_const)]
|
3 |
#![forbid(missing_docs, clippy::missing_safety_doc)]
|
1 |
#![allow(clippy::declare_interior_mutable_const)]
|
2 |
use core::{
|
1 |
//! Auto generated header name definitions
|
2 |
#![allow(clippy::declare_interior_mutable_const)]
|
1 |
#![allow(clippy::declare_interior_mutable_const)]
|
2 |
#![allow(clippy::borrow_interior_mutable_const)]
|
645 |
// Also,the constants don't use cell types,they're just generic.
|
646 |
#![allow(clippy::declare_interior_mutable_const)]
|
647 |
// This triggers for types that represent values, like `NestedFieldPath<(TS!(0), TS!(1))>`,
|
3 |
#![allow(clippy::too_many_arguments)]
|
4 |
#![allow(clippy::declare_interior_mutable_const)]
|
5 |
#![cfg_attr(not(feature = "std"), no_std)]
|
2 |
// a fix is already merged but hasn't made it upstream yet
|
3 |
#![allow(clippy::declare_interior_mutable_const)]
|
5 |
clippy::needless_doctest_main,
|
6 |
clippy::declare_interior_mutable_const
|
7 |
)]
|
1 |
#![warn(rust_2018_idioms)]
|
2 |
#![allow(clippy::declare_interior_mutable_const)]
|
3 |
#![cfg(all(feature = "full", tokio_unstable))]
|
1 |
#![cfg(all(feature = "full", not(tokio_wasi)))] // Wasi doesn't support threads
|
2 |
#![allow(clippy::declare_interior_mutable_const)]
|
3 |
use std::future::Future;
|
1 |
#![warn(rust_2018_idioms)]
|
2 |
#![allow(clippy::declare_interior_mutable_const)]
|
3 |
#![cfg(all(feature = "full", not(tokio_wasi)))]
|
5 |
clippy::needless_doctest_main,
|
6 |
clippy::declare_interior_mutable_const
|
7 |
)]
|
1 |
#![warn(rust_2018_idioms)]
|
2 |
#![allow(clippy::declare_interior_mutable_const)]
|
3 |
#![cfg(all(feature = "full", tokio_unstable))]
|
1 |
#![cfg(all(feature = "full", not(tokio_wasi)))] // Wasi doesn't support threads
|
2 |
#![allow(clippy::declare_interior_mutable_const)]
|
3 |
use std::future::Future;
|
1 |
#![warn(rust_2018_idioms)]
|
2 |
#![allow(clippy::declare_interior_mutable_const)]
|
3 |
#![cfg(all(feature = "full", not(tokio_wasi)))]
|
2 |
#![allow(drop_bounds)]
|
3 |
#![allow(clippy::declare_interior_mutable_const)]
|
4 |
#![warn(missing_docs)]
|