386 |
#[allow(clippy::cast_ptr_alignment)]
|
387 |
#[allow(clippy::ptr_as_ptr)]
|
388 |
unsafe {
|
853 |
#[must_use]
|
854 |
#[allow(clippy::ptr_as_ptr)]
|
855 |
pub fn new() -> MiniVec<T> {
|
1454 |
///
|
1455 |
#[allow(clippy::ptr_as_ptr)]
|
1456 |
pub fn split_off(&mut self, at: usize) -> MiniVec<T> {
|
23 |
#[allow(clippy::ptr_as_ptr)]
|
24 |
#[cxx::bridge]
|
66 |
#[allow(clippy::ptr_as_ptr)]
|
67 |
fn copy_address(&self, addr: usize, buf: &mut [u8]) -> std::io::Result<()> {
|
90 |
impl PutAddress for ProcessHandle {
|
91 |
#[allow(clippy::ptr_as_ptr)]
|
92 |
fn put_address(&self, addr: usize, buf: &[u8]) -> std::io::Result<()> {
|
172 |
fn protect_can_alter_text_segments() {
|
173 |
#[allow(clippy::ptr_as_ptr)]
|
174 |
let address = &mut protect_can_alter_text_segments as *mut _ as *mut u8;
|
132 |
unsafe {
|
133 |
#[allow(clippy::ptr_as_ptr)]
|
134 |
(&array as *const _ as *const [ListNode<T>; N]).read()
|
87 |
#[allow(clippy::ptr_as_ptr)]
|
88 |
impl<'a> PropertyData<'a> {
|
244 |
/// or `MPV_EVENT_PROPERTY_CHANGE` event failed, or if `MPV_EVENT_END_FILE` reported an error.
|
245 |
#[allow(clippy::ptr_as_ptr, clippy::cast_sign_loss)]
|
246 |
pub fn wait_event(&mut self, timeout: f64) -> Option<Result<Event<'_>>> {
|
63 |
/// This trait describes which types are allowed to be passed to getter mpv APIs.
|
64 |
#[allow(clippy::borrow_as_ptr, clippy::ptr_as_ptr)]
|
65 |
pub unsafe trait GetData: Sized {
|
76 |
/// This trait describes which types are allowed to be passed to setter mpv APIs.
|
77 |
#[allow(clippy::borrow_as_ptr, clippy::ptr_as_ptr)]
|
78 |
pub unsafe trait SetData: Sized {
|
256 |
#[allow(clippy::borrow_as_ptr, clippy::ptr_as_ptr)]
|
257 |
unsafe impl GetData for MpvNode {
|
283 |
#[allow(clippy::borrow_as_ptr, clippy::ptr_as_ptr)]
|
284 |
unsafe impl SetData for bool {
|
295 |
#[allow(clippy::let_underscore_drop, clippy::ptr_as_ptr)]
|
296 |
unsafe impl GetData for String {
|
17 |
clippy::manual_assert,
|
18 |
clippy::ptr_as_ptr,
|
19 |
clippy::redundant_closure_for_method_calls,
|
98 |
#[allow(clippy::ptr_as_ptr)]
|
99 |
#[inline(always)]
|
17 |
clippy::option_if_let_else,
|
18 |
clippy::ptr_as_ptr,
|
19 |
clippy::significant_drop_in_scrutinee,
|
79 |
clippy::option_if_let_else,
|
80 |
clippy::ptr_as_ptr,
|
81 |
clippy::redundant_else,
|
64 |
clippy::never_loop,
|
65 |
clippy::ptr_as_ptr,
|
66 |
clippy::shadow_unrelated,
|
88 |
#![no_std]
|
89 |
#![allow(clippy::missing_panics_doc, clippy::ptr_as_ptr)]
|
23 |
clippy::used_underscore_binding,
|
24 |
clippy::ptr_as_ptr,
|
25 |
clippy::missing_panics_doc,
|
11 |
clippy::used_underscore_binding,
|
12 |
clippy::ptr_as_ptr,
|
13 |
clippy::missing_panics_doc,
|
12 |
clippy::used_underscore_binding,
|
13 |
clippy::ptr_as_ptr,
|
14 |
clippy::missing_panics_doc,
|
16 |
clippy::used_underscore_binding,
|
17 |
clippy::ptr_as_ptr,
|
18 |
clippy::missing_panics_doc,
|
11 |
clippy::used_underscore_binding,
|
12 |
clippy::ptr_as_ptr,
|
13 |
clippy::missing_panics_doc,
|
13 |
clippy::used_underscore_binding,
|
14 |
clippy::ptr_as_ptr,
|
15 |
clippy::missing_panics_doc,
|
60 |
clippy::module_name_repetitions,
|
61 |
clippy::ptr_as_ptr
|
62 |
)]
|
12 |
clippy::missing_panics_doc,
|
13 |
clippy::ptr_as_ptr,
|
14 |
clippy::used_underscore_binding
|
12 |
//! `MPI_Rsend_init()`, `MPI_Recv_init()`, `MPI_Start()`, `MPI_Startall()`
|
13 |
#![allow(clippy::missing_panics_doc, clippy::ptr_as_ptr)]
|
14 |
use std::alloc::{self, Layout};
|
155 |
// for a clippy lint.
|
156 |
#![allow(clippy::ptr_as_ptr)]
|
157 |
// In these cases, I just don't like what Clippy suggests.
|
176 |
clippy::doc_markdown, // TODO: fixup comments and docs (though annoyingly complains about "PhysX")
|
177 |
clippy::ptr_as_ptr, // There are just too many of these
|
178 |
clippy::semicolon_if_nothing_returned, // Too many of these
|
69 |
clippy::needless_pass_by_value,
|
70 |
clippy::ptr_as_ptr,
|
71 |
clippy::missing_panics_doc,
|
69 |
clippy::needless_pass_by_value,
|
70 |
clippy::ptr_as_ptr,
|
71 |
clippy::missing_panics_doc,
|
79 |
clippy::option_if_let_else,
|
80 |
clippy::ptr_as_ptr,
|
81 |
clippy::redundant_else,
|
9 |
clippy::missing_safety_doc,
|
10 |
clippy::ptr_as_ptr,
|
11 |
clippy::single_match_else,
|
29 |
clippy::nonminimal_bool,
|
30 |
clippy::ptr_as_ptr,
|
31 |
clippy::redundant_else,
|