• abi_stable 0.11.1/src/external_types/parking_lot/mutex.rs
    24
    #[allow(clippy::declare_interior_mutable_const)]
    25
    const OPAQUE_MUTEX: OpaqueMutex =
  • abi_stable 0.11.1/src/external_types/parking_lot/once.rs
    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 {
  • abi_stable 0.11.1/src/external_types/parking_lot/rw_lock.rs
    24
    #[allow(clippy::declare_interior_mutable_const)]
    25
    const OPAQUE_LOCK: OpaqueRwLock =
  • abi_stable 0.11.1/src/sabi_types/late_static_ref.rs
    85
    #[allow(clippy::declare_interior_mutable_const)]
    86
    const LOCK: RMutex<()> = RMutex::new(());
  • actix-http 3.3.0/src/h2/dispatcher.rs
    302
            BodySize::Sized(0) => {
    303
                #[allow(clippy::declare_interior_mutable_const)]
    304
                const HV_ZERO: HeaderValue = HeaderValue::from_static("0");
  • actix-http 3.3.0/src/ws/mod.rs
    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");
  • actix-web 4.3.0/src/middleware/default_headers.rs
    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");
  • awc 3.1.0/src/client/h2proto.rs
    55
            BodySize::Sized(0) => {
    56
                #[allow(clippy::declare_interior_mutable_const)]
    57
                const HV_ZERO: HeaderValue = HeaderValue::from_static("0");
  • awc 3.1.0/src/ws.rs
    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");
  • axum 0.6.4/src/extract/ws.rs
    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");
  • axum 0.6.4/src/routing/route.rs
    217
            let header_value = if size == 0 {
    218
                #[allow(clippy::declare_interior_mutable_const)]
    219
                const ZERO: HeaderValue = HeaderValue::from_static("0");
  • axum-strangler 0.4.0/src/inner/websocket.rs
    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");
  • axum-tungstenite 0.2.0/src/lib.rs
    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");
  • azure_base 0.1.0/src/lib.rs
    68
    /// An empty HTTP body.
    69
    #[allow(clippy::declare_interior_mutable_const)]
    70
    pub const EMPTY_BODY: bytes::Bytes = bytes::Bytes::from_static(&[]);
  • azure_core 0.8.0/src/lib.rs
    76
    /// An empty HTTP body.
    77
    #[allow(clippy::declare_interior_mutable_const)]
    78
    pub const EMPTY_BODY: bytes::Bytes = bytes::Bytes::new();
  • azure_core_mirror 0.3.0/src/lib.rs
    69
    /// An empty HTTP body.
    70
    #[allow(clippy::declare_interior_mutable_const)]
    71
    pub const EMPTY_BODY: bytes::Bytes = bytes::Bytes::new();
  • bevy_hecs 0.3.0/src/query.rs
    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;
  • bh_alloc 0.2.4/src/fuzz/mod.rs
    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;
  • bh_alloc 0.2.4/src/lib.rs
    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;
  • blobnet 0.2.8/src/lib.rs
    130
    #[allow(clippy::declare_interior_mutable_const)]
    131
    mod headers {
  • console-subscriber 0.1.8/src/callsites.rs
    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());
  • core_detect 1.0.0/src/cache.rs
    78
        /// Creates an uninitialized cache.
    79
        #[allow(clippy::declare_interior_mutable_const)]
    80
        const fn uninitialized() -> Self {
  • crossbeam-utils 0.8.14/src/atomic/atomic_cell.rs
    902
        const LEN: usize = 97;
    903
        #[allow(clippy::declare_interior_mutable_const)]
    904
        const L: SeqLock = SeqLock::new();
  • dashmap 5.4.0/src/lock.rs
    17
    unsafe impl lock_api::RawRwLock for RawRwLock {
    18
        #[allow(clippy::declare_interior_mutable_const)]
    19
        const INIT: Self = Self {
  • edge-net 0.2.0/src/std_mutex.rs
    5
    unsafe impl RawMutex for StdRawMutex {
    6
        #[allow(clippy::declare_interior_mutable_const)]
    7
        const INIT: Self = Self(std::sync::Mutex::new(()));
  • embedded-svc 0.24.0/src/utils/mutex.rs
    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));
  • esp-idf-hal 0.40.1/src/task.rs
    382
        unsafe impl RawMutex for EspRawMutex {
    383
            #[allow(clippy::declare_interior_mutable_const)]
    384
            const INIT: Self = Self::new();
  • esp-idf-hal 0.40.1/src/uart.rs
    1082
    #[allow(clippy::declare_interior_mutable_const)]
    1083
    const NO_REFS: AtomicU8 = AtomicU8::new(0);
  • esp-idf-svc 0.45.0/src/private/mutex.rs
    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();
  • esp32-nimble 0.0.6/src/utilities/mutex.rs
    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();
  • filterm 0.4.0/src/lib.rs
    106
    #[allow(clippy::declare_interior_mutable_const)]
    107
    const ATOMIC_FALSE: AtomicBool = AtomicBool::new(false);
  • fontfor 0.3.1/src/fc/consts.rs
    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(|| {
  • hal-sim 0.2.0/src/ws.rs
    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());
  • heph-rt 0.4.1/src/shared/scheduler/inactive.rs
    206
        const fn empty() -> Branch {
    207
            #[allow(clippy::declare_interior_mutable_const)]
    208
            const NONE: AtomicPtr<()> = AtomicPtr::new(ptr::null_mut());
  • hermit-sync 0.1.2/src/mutex/spin.rs
    16
    unsafe impl RawMutex for RawSpinMutex {
    17
        #[allow(clippy::declare_interior_mutable_const)]
    18
        const INIT: Self = Self {
  • hermit-sync 0.1.2/src/mutex/ticket.rs
    17
    unsafe impl RawMutex for RawTicketMutex {
    18
        #[allow(clippy::declare_interior_mutable_const)]
    19
        const INIT: Self = Self {
  • hyper-simple-server 0.5.1/exports.rs
    197
    #[ allow (clippy::declare_interior_mutable_const) ]
    198
    #[ cfg (feature = "hss-extensions") ]
  • imxrt-dma 0.1.1/src/interrupt.rs
    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));
  • kanal 0.1.0-pre8/src/mutex.rs
    16
    unsafe impl RawMutex for RawMutexLock {
    17
        #[allow(clippy::declare_interior_mutable_const)]
    18
        const INIT: RawMutexLock = RawMutexLock {
  • leaky-bucket 0.12.2/src/lib.rs
    809
    impl AcquireState {
    810
        #[allow(clippy::declare_interior_mutable_const)]
    811
        const INITIAL: AcquireState = AcquireState {
  • lock_api 0.4.9/src/mutex.rs
    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;
  • lock_api 0.4.9/src/remutex.rs
    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 {
  • lock_api 0.4.9/src/rwlock.rs
    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;
  • malachite-base 0.3.2/src/comparison/traits.rs
    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 {
  • malachite-base 0.3.2/src/num/basic/traits.rs
    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 {
  • metrics 0.20.1/src/recorder.rs
    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 {
  • node-replication 0.1.1/src/log.rs
    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));
  • node-replication 0.1.1/src/rwlock.rs
    29
    #[allow(clippy::declare_interior_mutable_const)]
    30
    const RLOCK_DEFAULT: CachePadded<AtomicUsize> = CachePadded::new(AtomicUsize::new(0));
  • nolock 0.4.1/src/hyaline.rs
    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);
  • ntex 0.6.3/src/http/h1/decoder.rs
    57
    #[allow(clippy::declare_interior_mutable_const)]
    58
    const ZERO: PayloadLength = PayloadLength::Payload(PayloadType::Payload(PayloadDecoder {
  • ntex 0.6.3/src/http/h2/service.rs
    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");
  • otter 1.2.1/src/error.rs
    244
      type Error;
    245
      #[allow(clippy::declare_interior_mutable_const)]
    246
      // https://github.com/rust-lang/rust-clippy/issues/3962#issuecomment-667957112
  • pipitor 0.3.0-alpha.15/src/util/http_service.rs
    17
    #[allow(clippy::declare_interior_mutable_const)]
    18
    const USER_AGENT_PIPITOR: HeaderValue =
  • pipitor 0.3.0-alpha.15/src/util.rs
    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");
  • portable-atomic 1.0.1/src/imp/fallback/imp.rs
    20
        const LEN: usize = 67;
    21
        #[allow(clippy::declare_interior_mutable_const)]
    22
        const L: CachePadded<SeqLock> = CachePadded::new(SeqLock::new());
  • priority-inheriting-lock 0.2.2/src/lib.rs
    38
        // Following lock_api's design
    39
        #[allow(clippy::declare_interior_mutable_const)]
    40
        const INIT: RawPriorityInheritingLock<S> = RawPriorityInheritingLock::new();
  • r3_kernel 0.1.4/src/lib.rs
    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;
  • r3_kernel 0.1.4/src/mutex.rs
    128
    impl<Traits: PortThreading> Init for MutexCb<Traits> {
    129
        #[allow(clippy::declare_interior_mutable_const)]
    130
        const INIT: Self = Self {
  • r3_kernel 0.1.4/src/semaphore.rs
    113
    impl<Traits: Port> Init for SemaphoreCb<Traits> {
    114
        #[allow(clippy::declare_interior_mutable_const)]
    115
        const INIT: Self = Self {
  • r3_kernel 0.1.4/src/task/readyqueue.rs
    211
    {
    212
        #[allow(clippy::declare_interior_mutable_const)]
    213
        const INIT: Self = Self { link: Init::INIT };
  • r3_kernel 0.1.4/src/timeout.rs
    423
    impl<Traits: KernelTraits> Init for Timeout<Traits> {
    424
        #[allow(clippy::declare_interior_mutable_const)]
    425
        const INIT: Self = Self {
  • r3_kernel 0.1.4/src/timer.rs
    115
    impl<Traits: KernelTraits> Init for TimerCb<Traits> {
    116
        #[allow(clippy::declare_interior_mutable_const)]
    117
        const INIT: Self = Self {
  • r3_kernel 0.1.4/src/wait.rs
    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 {
  • r3_port_arm 0.2.3/src/threading/imp.rs
    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 {
  • r3_port_arm_m 0.3.3/src/threading/imp.rs
    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 {
  • r3_port_riscv 0.3.1/src/threading/imp.rs
    217
    impl Init for TaskState {
    218
        #[allow(clippy::declare_interior_mutable_const)] // it's intentional
    219
        const INIT: Self = Self {
  • r3_port_std 0.2.1/src/lib.rs
    115
    impl Init for TaskState {
    116
        #[allow(clippy::declare_interior_mutable_const)]
    117
        const INIT: Self = Self::new();
  • rhai 1.12.0/src/config/hashing.rs
    89
        const LEN: usize = 787;
    90
        #[allow(clippy::declare_interior_mutable_const)]
    91
        const LCK: HokmaLock = HokmaLock::new();
  • rlsf 0.2.0/src/global.rs
    49
    impl<Options: GlobalTlsfOptions> ConstDefault for GlobalTlsf<Options> {
    50
        #[allow(clippy::declare_interior_mutable_const)]
    51
        const DEFAULT: Self = Self::new();
  • rust-fsm 0.6.1/src/lib.rs
    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;
  • rustfmt_lib 2.0.0-rc.2/tests/source/cfg_if/detect/cache.rs
    81
        /// Creates an uninitialized cache.
    82
        #[allow(clippy::declare_interior_mutable_const)]
    83
        const fn uninitialized() -> Self {
  • rustfmt_lib 2.0.0-rc.2/tests/target/cfg_if/detect/cache.rs
    81
        /// Creates an uninitialized cache.
    82
        #[allow(clippy::declare_interior_mutable_const)]
    83
        const fn uninitialized() -> Self {
  • rustfmt-nightly 1.4.21/tests/source/cfg_if/detect/cache.rs
    81
        /// Creates an uninitialized cache.
    82
        #[allow(clippy::declare_interior_mutable_const)]
    83
        const fn uninitialized() -> Self {
  • rustfmt-nightly 1.4.21/tests/target/cfg_if/detect/cache.rs
    81
        /// Creates an uninitialized cache.
    82
        #[allow(clippy::declare_interior_mutable_const)]
    83
        const fn uninitialized() -> Self {
  • rustpython-common 0.2.0/src/lock/cell_lock.rs
    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 {
  • rustpython-common 0.2.0/src/lock/thread_mutex.rs
    20
    impl<R: RawMutex, G: GetThreadId> RawThreadMutex<R, G> {
    21
        #[allow(clippy::declare_interior_mutable_const)]
    22
        pub const INIT: Self = RawThreadMutex {
  • s3s 0.2.0/src/http/ser.rs
    57
        #[allow(clippy::declare_interior_mutable_const)]
    58
        fn try_into_header_value(self) -> Result<HeaderValue, Self::Error> {
  • sbi-testing 0.0.1/src/hsm.rs
    125
    impl ItemPerHart {
    126
        #[allow(clippy::declare_interior_mutable_const)]
    127
        const ZERO: Self = Self {
  • sharded_mutex 1.0.0/src/lib.rs
    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));
  • softposit 0.4.0/src/lib.rs
    103
    #[allow(clippy::declare_interior_mutable_const)]
    104
    pub trait MathConsts {
  • spin 0.9.4/src/once.rs
    358
        /// Initialization constant of [`Once`].
    359
        #[allow(clippy::declare_interior_mutable_const)]
    360
        pub const INIT: Self = Self {
  • starlark 0.8.0/src/values/layout/avalue.rs
    75
    pub(crate) const VALUE_STR_A_VALUE_PTR: AValueHeader = {
    76
        #[allow(clippy::declare_interior_mutable_const)]
    77
        const VTABLE: AValueImpl<Direct, StarlarkStr> =
  • static_init 1.0.3/src/exit_sequentializer.rs
    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
  • staticinit 1.0.0/src/exit_sequentializer.rs
    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
  • std_detect 0.1.5/src/detect/cache.rs
    81
        /// Creates an uninitialized cache.
    82
        #[allow(clippy::declare_interior_mutable_const)]
    83
        const fn uninitialized() -> Self {
  • svc-utils 0.6.0/src/middleware/cors.rs
    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");
  • tower-http 0.3.5/src/catch_panic.rs
    348
            #[allow(clippy::declare_interior_mutable_const)]
    349
            const TEXT_PLAIN: HeaderValue = HeaderValue::from_static("text/plain; charset=utf-8");
  • tower-http 0.3.5/src/cors/allow_credentials.rs
    48
        ) -> Option<(HeaderName, HeaderValue)> {
    49
            #[allow(clippy::declare_interior_mutable_const)]
    50
            const TRUE: HeaderValue = HeaderValue::from_static("true");
  • tower-http 0.3.5/src/cors/mod.rs
    98
    #[allow(clippy::declare_interior_mutable_const)]
    99
    const WILDCARD: HeaderValue = HeaderValue::from_static("*");
  • tower-http 0.3.5/src/limit/body.rs
    101
        #[allow(clippy::declare_interior_mutable_const)]
    102
        const TEXT_PLAIN: HeaderValue = HeaderValue::from_static("text/plain; charset=utf-8");
  • try-drop 0.2.0/src/handlers/primary/shim.rs
    25
            /// See [`Self::use_default_on_uninit`].
    26
            #[allow(clippy::declare_interior_mutable_const)]
    27
            pub const USE_DEFAULT_ON_UNINIT: Self = Self {
  • user_doc-doc_proc_macro 0.1.0/lib.rs
    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"));
  • vulkano 0.32.3/src/memory/allocator/mod.rs
    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 {
  • witchcraft-server 3.4.0/src/debug/endpoint.rs
    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");
  • witchcraft-server 3.4.0/src/endpoint/errors.rs
    21
    #[allow(clippy::declare_interior_mutable_const)]
    22
    const APPLICATION_JSON: HeaderValue = HeaderValue::from_static("application/json");
  • witchcraft-server 3.4.0/src/service/deprecation_header.rs
    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");
  • witchcraft-server 3.4.0/src/service/gzip.rs
    46
    #[allow(clippy::declare_interior_mutable_const)]
    47
    const GZIP: HeaderValue = HeaderValue::from_static("gzip");
  • witchcraft-server 3.4.0/src/service/no_caching.rs
    23
    #[allow(clippy::declare_interior_mutable_const)]
    24
    const DO_NOT_CACHE: HeaderValue = HeaderValue::from_static("no-cache, no-store, must-revalidate");
  • witchcraft-server 3.4.0/src/service/web_security.rs
    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");
  • wrflib 0.0.3/src/shader.rs
    48
        /// to be editable.
    49
        #[allow(clippy::declare_interior_mutable_const)]
    50
        pub const DEFAULT: Shader =
  • yarte_lexer 0.0.1/src/error.rs
    14
    #[allow(clippy::declare_interior_mutable_const)]
    15
    pub trait KiError: Error + PartialEq + Clone {
  • zaplib 0.0.3/src/shader.rs
    44
        /// to be editable.
    45
        #[allow(clippy::declare_interior_mutable_const)]
    46
        pub const DEFAULT: Shader =
  • zkp-primefield 0.2.0/src/prime_field.rs
    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;
  • zkp-u256 0.2.1/src/traits/mod.rs
    276
    // `T` can not have interior mutability.
    277
    #[allow(clippy::declare_interior_mutable_const)]
    278
    pub trait MontgomeryParameters: 'static + Send + Sync + Sized {
  • actix-http 3.3.0/src/header/mod.rs
    3
    // declaring new header consts will yield this error
    4
    #![allow(clippy::declare_interior_mutable_const)]
  • bagel 0.1.3/src/constdef_impls/core.rs
    51
            // allow this because Constdef can also be used for statics
    52
            #![allow(clippy::declare_interior_mutable_const)]
    53
            use crate::Constdef;
  • bitvec 1.0.1/src/lib.rs
    12
    #![allow(
    13
    	clippy::declare_interior_mutable_const,
    14
    	clippy::type_complexity,
  • conjure-http 3.5.0/src/lib.rs
    21
    #![allow(
    22
        clippy::declare_interior_mutable_const,
    23
        clippy::borrow_interior_mutable_const
  • constant 0.2.0/src/constdef_impls/core.rs
    51
            // allow this because Constdef can also be used for statics
    52
            #![allow(clippy::declare_interior_mutable_const)]
    53
            use crate::Constdef;
  • cxx 1.0.88/src/lib.rs
    377
        clippy::cognitive_complexity,
    378
        clippy::declare_interior_mutable_const,
    379
        clippy::doc_markdown,
  • elfo-core 0.1.34/src/scope.rs
    1
    #![allow(clippy::declare_interior_mutable_const)] // see tokio#4872
  • ezk-sip-types 0.1.1/src/lib.rs
    3
    #![allow(
    4
        clippy::declare_interior_mutable_const,
    5
        clippy::borrow_interior_mutable_const
  • fsevent-stream 0.2.3/src/ffi.rs
    8
        clippy::unreadable_literal,
    9
        clippy::declare_interior_mutable_const
    10
    )]
  • imxrt-usbd 0.2.0/src/state.rs
    1
    #![allow(clippy::declare_interior_mutable_const)] // Usage is legit in this module.
  • intrusive-collections 0.9.5/src/lib.rs
    271
    #![allow(
    272
        clippy::declare_interior_mutable_const,
    273
        clippy::collapsible_if,
  • jay-config 0.1.0/src/_private/client.rs
    1
    #![allow(clippy::declare_interior_mutable_const, clippy::type_complexity)]
  • lsmtree 0.1.1/src/lib.rs
    8
    #![deny(missing_docs)]
    9
    #![allow(clippy::declare_interior_mutable_const)]
    10
    #![allow(clippy::borrow_interior_mutable_const)]
  • ntex-amqp 0.7.0/src/error_code.rs
    1
    #![allow(clippy::declare_interior_mutable_const)]
  • ntex-grpc 0.3.3/src/consts.rs
    1
    #![allow(clippy::declare_interior_mutable_const)]
    2
    use ntex_http::{HeaderName, HeaderValue};
  • pui-core 0.5.2/src/lib.rs
    1
    #![cfg_attr(not(feature = "std"), no_std)]
    2
    #![allow(clippy::declare_interior_mutable_const)]
    3
    #![forbid(missing_docs, clippy::missing_safety_doc)]
  • r3_core 0.1.4/src/utils/init.rs
    1
    #![allow(clippy::declare_interior_mutable_const)]
    2
    use core::{
  • s3s 0.2.0/src/header/names.rs
    1
    //! Auto generated header name definitions
    2
    #![allow(clippy::declare_interior_mutable_const)]
  • s3s 0.2.0/src/ops/generated.rs
    1
    #![allow(clippy::declare_interior_mutable_const)]
    2
    #![allow(clippy::borrow_interior_mutable_const)]
  • structural 0.4.3/src/lib.rs
    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))>`,
  • sunshine-util 0.1.1/src/lib.rs
    3
    #![allow(clippy::too_many_arguments)]
    4
    #![allow(clippy::declare_interior_mutable_const)]
    5
    #![cfg_attr(not(feature = "std"), no_std)]
  • task-local-extensions 0.1.3/src/task_local.rs
    2
    // a fix is already merged but hasn't made it upstream yet
    3
    #![allow(clippy::declare_interior_mutable_const)]
  • tokio 1.25.0/src/lib.rs
    5
        clippy::needless_doctest_main,
    6
        clippy::declare_interior_mutable_const
    7
    )]
  • tokio 1.25.0/tests/task_id.rs
    1
    #![warn(rust_2018_idioms)]
    2
    #![allow(clippy::declare_interior_mutable_const)]
    3
    #![cfg(all(feature = "full", tokio_unstable))]
  • tokio 1.25.0/tests/task_local.rs
    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;
  • tokio 1.25.0/tests/task_panic.rs
    1
    #![warn(rust_2018_idioms)]
    2
    #![allow(clippy::declare_interior_mutable_const)]
    3
    #![cfg(all(feature = "full", not(tokio_wasi)))]
  • tokio_wasi 1.23.0/src/lib.rs
    5
        clippy::needless_doctest_main,
    6
        clippy::declare_interior_mutable_const
    7
    )]
  • tokio_wasi 1.23.0/tests/task_id.rs
    1
    #![warn(rust_2018_idioms)]
    2
    #![allow(clippy::declare_interior_mutable_const)]
    3
    #![cfg(all(feature = "full", tokio_unstable))]
  • tokio_wasi 1.23.0/tests/task_local.rs
    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;
  • tokio_wasi 1.23.0/tests/task_panic.rs
    1
    #![warn(rust_2018_idioms)]
    2
    #![allow(clippy::declare_interior_mutable_const)]
    3
    #![cfg(all(feature = "full", not(tokio_wasi)))]
  • try-drop 0.2.0/src/lib.rs
    2
    #![allow(drop_bounds)]
    3
    #![allow(clippy::declare_interior_mutable_const)]
    4
    #![warn(missing_docs)]