288 |
let node = unsafe {
|
289 |
#[allow(clippy::cast_ref_to_mut)]
|
290 |
&mut *(interim as *const BoxedNode<TypedNode<K, V>> as *mut BoxedNode<TypedNode<K, V>>)
|
131 |
// and the node will not remove when listener close
|
132 |
#[allow(clippy::cast_ref_to_mut)]
|
133 |
let list = unsafe { &mut *(list as *const _ as *mut LimitedListeners) };
|
116 |
// and the node will not remove when listener close
|
117 |
#[allow(clippy::cast_ref_to_mut)]
|
118 |
let list = unsafe { &mut *(list as *const _ as *mut LimitedListeners) };
|
216 |
/// Present call. Should be called once per original present call, before or inside of hook.
|
217 |
#[allow(clippy::cast_ref_to_mut)]
|
218 |
pub fn present(&self, swap_chain: &IDXGISwapChain) {
|
594 |
impl<'a> StoredAccountMeta<'a> {
|
595 |
#[allow(clippy::cast_ref_to_mut)]
|
596 |
fn set_data_len_unsafe(&self, new_data_len: u64) {
|
610 |
#[allow(clippy::cast_ref_to_mut)]
|
611 |
fn set_executable_as_byte(&self, new_executable_byte: u8) {
|
264 |
/// A buffer, which length is 1, is allocated for the slice.
|
265 |
#[allow(clippy::cast_ref_to_mut)]
|
266 |
fn from(s: &'a GrpcSlice) -> GrpcByteBuffer {
|
82 |
/// 替换数据,需指定数据类型V
|
83 |
#[allow(clippy::cast_ref_to_mut)]
|
84 |
pub fn replace_with_write<V, F>(&self, v: V, f: F)
|
132 |
/// 取出数据,只能执行一次
|
133 |
#[allow(clippy::cast_ref_to_mut)]
|
134 |
pub fn take_with_read<V, F>(&self, f: F) -> V
|
72 |
#[allow(clippy::cast_ref_to_mut)]
|
73 |
fn render_template_recursion_inner(
|
204 |
#[allow(clippy::cast_ref_to_mut)]
|
205 |
pub fn as_object_mut(&self) -> Result<&mut BTreeMap<String, Value>> {
|
70 |
#[allow(unused, clippy::cast_ref_to_mut)]
|
71 |
pub fn look_up_or_cache<'w>(&mut self, tag: &'w str, sources: &Sources) -> crate::Result<&Locale>
|
115 |
fn load_index(&self) -> usize {
|
116 |
#[allow(clippy::cast_ref_to_mut)]
|
117 |
let index = unsafe { &mut *(&self.index as *const _ as *mut AtomicUsize) };
|
121 |
fn set_index(&self, index: usize) {
|
122 |
#[allow(clippy::cast_ref_to_mut)]
|
123 |
let idx = unsafe { &mut *(&self.index as *const _ as *mut AtomicUsize) };
|
127 |
fn set_block(&self, block: *mut Block<T>) {
|
128 |
#[allow(clippy::cast_ref_to_mut)]
|
129 |
let blk = unsafe { &mut *(&self.block as *const _ as *mut AtomicPtr<Block<T>>) };
|
18 |
#[allow(clippy::cast_ref_to_mut)]
|
19 |
#[inline]
|
155 |
/// Compiles all procedures in the specified module and adds them to the procedure cache.
|
156 |
#[allow(clippy::cast_ref_to_mut)]
|
157 |
fn compile_module(
|
159 |
// FIXME: We need a safe implementation.
|
160 |
#[allow(clippy::cast_ref_to_mut)]
|
161 |
#[allow(clippy::mut_from_ref)]
|
365 |
// FIXME: We need a safe implementation.
|
366 |
#[allow(clippy::cast_ref_to_mut)]
|
367 |
#[allow(clippy::mut_from_ref)]
|
459 |
// FIXME: We need a safe implementation.
|
460 |
#[allow(clippy::cast_ref_to_mut)]
|
461 |
#[allow(clippy::mut_from_ref)]
|
43 |
// We assume this is the only running work packet that accesses plan at the point of execution
|
44 |
#[allow(clippy::cast_ref_to_mut)]
|
45 |
let plan_mut: &mut C::PlanType = unsafe { &mut *(self.plan as *const _ as *mut _) };
|
112 |
// We assume this is the only running work packet that accesses plan at the point of execution
|
113 |
#[allow(clippy::cast_ref_to_mut)]
|
114 |
let plan_mut: &mut C::PlanType = unsafe { &mut *(self.plan as *const _ as *mut _) };
|
98 |
// FIXME: We need a safe implementation
|
99 |
#[allow(clippy::cast_ref_to_mut)]
|
100 |
let self_mut: &mut Self = unsafe { &mut *(self as *const _ as *mut _) };
|
242 |
// FIXME: We need a safe implementation
|
243 |
#[allow(clippy::cast_ref_to_mut)]
|
244 |
let self_mut: &mut Self = unsafe { &mut *(self as *const _ as *mut _) };
|
328 |
// FIXME
|
329 |
#[allow(clippy::cast_ref_to_mut)]
|
330 |
let me = unsafe { &mut *(self as *const _ as *mut Self) };
|
228 |
#[allow(clippy::cast_ref_to_mut)]
|
229 |
#[allow(clippy::mut_from_ref)]
|
197 |
if let Some(fl) = fl {
|
198 |
#[allow(clippy::cast_ref_to_mut)]
|
199 |
let fl_mut: &mut CommonFreeListPageResource =
|
64 |
#[allow(clippy::cast_ref_to_mut)]
|
65 |
impl<'t, Inner> AsyncReadRent for ReadHalf<'t, Inner>
|
90 |
#[allow(clippy::cast_ref_to_mut)]
|
91 |
impl<'t, Inner> AsyncWriteRent for WriteHalf<'t, Inner>
|
14 |
#[allow(clippy::cast_ref_to_mut)]
|
15 |
impl<'t> AsReadFd for TcpReadHalf<'t> {
|
42 |
#[allow(clippy::cast_ref_to_mut)]
|
43 |
impl<'t> AsWriteFd for TcpWriteHalf<'t> {
|
15 |
#[allow(clippy::cast_ref_to_mut)]
|
16 |
impl<'t> AsReadFd for UnixReadHalf<'t> {
|
23 |
#[allow(clippy::cast_ref_to_mut)]
|
24 |
impl<'t> AsWriteFd for UnixWriteHalf<'t> {
|
81 |
// we must leak the stream
|
82 |
#[allow(clippy::cast_ref_to_mut)]
|
83 |
let stream = unsafe { &mut *(&this.stream as *const T as *mut T) };
|
147 |
// we must leak the stream
|
148 |
#[allow(clippy::cast_ref_to_mut)]
|
149 |
let stream = unsafe { &mut *(&this.stream as *const T as *mut T) };
|
186 |
if !this.flush_fut.armed() {
|
187 |
#[allow(clippy::cast_ref_to_mut)]
|
188 |
let stream = unsafe { &mut *(&this.stream as *const T as *mut T) };
|
213 |
if !this.shutdown_fut.armed() {
|
214 |
#[allow(clippy::cast_ref_to_mut)]
|
215 |
let stream = unsafe { &mut *(&this.stream as *const T as *mut T) };
|
85 |
// we must leak the stream
|
86 |
#[allow(clippy::cast_ref_to_mut)]
|
87 |
let stream = unsafe { &mut *(&this.stream as *const TcpStream as *mut TcpStream) };
|
117 |
// we must leak the stream
|
118 |
#[allow(clippy::cast_ref_to_mut)]
|
119 |
let stream = unsafe { &mut *(&this.stream as *const TcpStream as *mut TcpStream) };
|
140 |
if !this.flush_fut.armed() {
|
141 |
#[allow(clippy::cast_ref_to_mut)]
|
142 |
let stream = unsafe { &mut *(&this.stream as *const TcpStream as *mut TcpStream) };
|
154 |
if !this.shutdown_fut.armed() {
|
155 |
#[allow(clippy::cast_ref_to_mut)]
|
156 |
let stream = unsafe { &mut *(&this.stream as *const TcpStream as *mut TcpStream) };
|
661 |
{
|
662 |
#[allow(clippy::cast_ref_to_mut)]
|
663 |
let runtime = &mut *(runtime as *const Runtime as *mut Runtime);
|
118 |
let ms: &mut MySection = unsafe {
|
119 |
#[allow(clippy::cast_ref_to_mut)]
|
120 |
&mut *(&**s as *const Section as *mut MySection)
|
45 |
unsafe {
|
46 |
#[allow(clippy::cast_ref_to_mut)]
|
47 |
&mut *((&*self.bucket) as *const Bucket as *mut Bucket)
|
189 |
unsafe {
|
190 |
#[allow(clippy::cast_ref_to_mut)]
|
191 |
&mut *(self.branch_page_elements() as *const [BranchPageElement]
|
206 |
unsafe {
|
207 |
#[allow(clippy::cast_ref_to_mut)]
|
208 |
&mut *(self.branch_page_element(index) as *const BranchPageElement
|
224 |
unsafe {
|
225 |
#[allow(clippy::cast_ref_to_mut)]
|
226 |
&mut *(self.leaf_page_elements() as *const [LeafPageElement]
|
241 |
unsafe {
|
242 |
#[allow(clippy::cast_ref_to_mut)]
|
243 |
&mut *(self.leaf_page_element(index) as *const LeafPageElement as *mut LeafPageElement)
|
257 |
unsafe {
|
258 |
#[allow(clippy::cast_ref_to_mut)]
|
259 |
&mut *(self.meta() as *const Meta as *mut Meta)
|
233 |
self.page = unsafe { (*self.page).next };
|
234 |
#[allow(clippy::cast_ref_to_mut)]
|
235 |
Some(CTmpMut::new(
|
410 |
self.region = unsafe { (*self.region).next };
|
411 |
#[allow(clippy::cast_ref_to_mut)]
|
412 |
Some(CTmpMut::new(
|
584 |
impl<'a> StoredAccountMeta<'a> {
|
585 |
#[allow(clippy::cast_ref_to_mut)]
|
586 |
fn set_data_len_unsafe(&self, new_data_len: u64) {
|
600 |
#[allow(clippy::cast_ref_to_mut)]
|
601 |
fn set_executable_as_byte(&self, new_executable_byte: u8) {
|
27 |
#[allow(clippy::needless_lifetimes)]
|
28 |
#[allow(clippy::cast_ref_to_mut)]
|
29 |
impl<T: ?Sized> ForceMut for T {
|
53 |
fn as_slice_mut(&mut self) -> &mut [u8] {
|
54 |
#[allow(clippy::cast_ref_to_mut)]
|
55 |
// SAFETY: v8::SharedRef<v8::BackingStore> is similar to Arc<[u8]>,
|
584 |
impl<'a> StoredAccountMeta<'a> {
|
585 |
#[allow(clippy::cast_ref_to_mut)]
|
586 |
fn set_data_len_unsafe(&self, new_data_len: u64) {
|
600 |
#[allow(clippy::cast_ref_to_mut)]
|
601 |
fn set_executable_as_byte(&self, new_executable_byte: u8) {
|
78 |
// so things like Hash/Ord/Eq will work the same
|
79 |
#[allow(clippy::cast_ref_to_mut)]
|
80 |
let k_mut = unsafe { &mut *(k as *const K as *mut K) };
|
138 |
let t = typ.downcast_ref::<EnumType>().unwrap();
|
139 |
#[allow(clippy::cast_ref_to_mut)]
|
140 |
unsafe {
|
746 |
impl<'a> StoredAccountMeta<'a> {
|
747 |
#[allow(clippy::cast_ref_to_mut)]
|
748 |
fn set_data_len_unsafe(&self, new_data_len: u64) {
|
762 |
#[allow(clippy::cast_ref_to_mut)]
|
763 |
fn set_executable_as_byte(&self, new_executable_byte: u8) {
|
25 |
#![warn(missing_docs)]
|
26 |
#![allow(clippy::cast_ptr_alignment, clippy::cast_ref_to_mut)]
|