188 |
#[allow(clippy::uninit_assumed_init)]
|
189 |
fn decode(src: &mut BytesMut) -> Result<Option<(Self, PayloadType)>, ParseError> {
|
264 |
#[allow(clippy::uninit_assumed_init)]
|
265 |
fn decode(src: &mut BytesMut) -> Result<Option<(Self, PayloadType)>, ParseError> {
|
329 |
// https://internals.rust-lang.org/t/is-synthesizing-zero-sized-values-safe/11506
|
330 |
#[allow(clippy::uninit_assumed_init)]
|
331 |
let mut cmp: ManuallyDrop<F> = unsafe { MaybeUninit::uninit().assume_init() };
|
464 |
PhantomData,
|
465 |
#[allow(clippy::uninit_assumed_init)]
|
466 |
unsafe {
|
490 |
PhantomData,
|
491 |
#[allow(clippy::uninit_assumed_init)]
|
492 |
unsafe {
|
41 |
/// AquesTalk.dllを読み込むための関数です。引数にはAquesTalk.dllのパスを指定してください
|
42 |
#[allow(clippy::uninit_assumed_init)]
|
43 |
pub fn load<P: AsRef<OsStr>>(dllpath: P) -> Result<Self, Box<dyn std::error::Error>> {
|
211 |
/// なお、この制限解除機能は私は製品版を持ってなくてテストしていないので、動作保証はありません(不具合があったら私に製品版をプレゼントするなり、Githubにプルリク投げるなりしてください)
|
212 |
#[allow(clippy::uninit_assumed_init)]
|
213 |
pub fn load<P: AsRef<OsStr>>(
|
249 |
// everything is ok
|
250 |
#[allow(clippy::uninit_assumed_init)]
|
251 |
fn uninit() -> Self::Maybe {
|
374 |
impl<V> Node256<V> {
|
375 |
#[allow(clippy::uninit_assumed_init)]
|
376 |
fn new(prefix: &[u8]) -> Self {
|
132 |
#[allow(invalid_value)]
|
133 |
#[allow(clippy::uninit_assumed_init)]
|
134 |
let params = ucp_ep_params {
|
160 |
#[allow(invalid_value)]
|
161 |
#[allow(clippy::uninit_assumed_init)]
|
162 |
let params = ucp_ep_params {
|
177 |
#[allow(invalid_value)]
|
178 |
#[allow(clippy::uninit_assumed_init)]
|
179 |
let params = ucp_ep_params {
|
14 |
#[allow(invalid_value)]
|
15 |
#[allow(clippy::uninit_assumed_init)]
|
16 |
let params = ucp_mem_map_params_t {
|
32 |
pub fn remote_addr(&self) -> Result<SocketAddr, Error> {
|
33 |
#[allow(clippy::uninit_assumed_init)]
|
34 |
let mut attr = ucp_conn_request_attr {
|
90 |
pub fn socket_addr(&self) -> Result<SocketAddr, Error> {
|
91 |
#[allow(clippy::uninit_assumed_init)]
|
92 |
let mut attr = ucp_listener_attr_t {
|
86 |
#[allow(clippy::uninit_assumed_init)]
|
87 |
let params = ucp_params_t {
|
133 |
#[allow(invalid_value)]
|
134 |
#[allow(clippy::uninit_assumed_init)]
|
135 |
let mut attr = ucp_context_attr {
|
73 |
// returned by the folding function.
|
74 |
#[allow(clippy::uninit_assumed_init)]
|
75 |
let uninit = unsafe { mem::MaybeUninit::<Output>::uninit().assume_init() };
|
84 |
// returned by the folding function.
|
85 |
#[allow(clippy::uninit_assumed_init)]
|
86 |
let uninit = unsafe { mem::MaybeUninit::<Output>::uninit().assume_init() };
|
110 |
impl<T: bytemuck::Zeroable + Clone + PartialEq> InputQueue<T> {
|
111 |
#[allow(clippy::uninit_assumed_init)]
|
112 |
pub fn new(frame_delay: Frame) -> Self {
|
113 |
// *not* the T inside them. MaybeUninit requires no initialization.
|
114 |
#[allow(clippy::uninit_assumed_init)]
|
115 |
let block: [UnsafeCell<MaybeUninit<T>>; CHUNK_SIZE] =
|
142 |
#[allow(clippy::uninit_assumed_init)]
|
143 |
impl Default for Packet {
|
39 |
#[allow(clippy::uninit_assumed_init)]
|
40 |
let mut si: [dds_sample_info_t; MAX_SAMPLES] = { MaybeUninit::uninit().assume_init() };
|
2964 |
// Using uninitialized memory is ~30% faster
|
2965 |
#[allow(invalid_value, clippy::uninit_assumed_init)]
|
2966 |
let mut inner: Inner = mem::MaybeUninit::uninit().assume_init();
|
3097 |
// Using uninitialized memory is ~30% faster
|
3098 |
#[allow(invalid_value, clippy::uninit_assumed_init)]
|
3099 |
let mut inner: Inner = mem::MaybeUninit::uninit().assume_init();
|
966 |
// uninitialized. `node.element` is initialized manually by `ptr::write`.
|
967 |
#[allow(invalid_value, clippy::uninit_assumed_init)]
|
968 |
let node = Box::<Node<T>>::leak(Box::new(MaybeUninit::uninit().assume_init()));
|
38 |
#[allow(clippy::uninit_assumed_init)]
|
39 |
let mut si: [dds_sample_info_t; MAX_SAMPLES] = { MaybeUninit::uninit().assume_init() };
|
190 |
{
|
191 |
#[allow(clippy::uninit_assumed_init)]
|
192 |
// This is safe because we initialize the array immediately after,
|
57 |
impl<T: UarteMap> Periph<T> {
|
58 |
#[allow(clippy::uninit_assumed_init)]
|
59 |
pub(crate) fn summon() -> Self {
|
121 |
#[allow(clippy::uninit_assumed_init)]
|
122 |
fn read_u32_le(input: &[u8]) -> u32 {
|
131 |
#[allow(clippy::uninit_assumed_init)]
|
132 |
fn read_u32v_le(dst: &mut [u32], input: &[u8]) {
|
499 |
#[must_use]
|
500 |
#[allow(clippy::uninit_assumed_init, clippy::needless_lifetimes)]
|
501 |
pub unsafe fn prepare_raw_array<'s, const LEN: usize>(
|
256 |
#[inline]
|
257 |
#[allow(clippy::uninit_assumed_init)]
|
258 |
#[doc(hidden)]
|
188 |
#[allow(clippy::uninit_assumed_init)]
|
189 |
fn decode(src: &mut BytesMut) -> Result<Option<(Self, PayloadType)>, ParseError> {
|
264 |
#[allow(clippy::uninit_assumed_init)]
|
265 |
fn decode(src: &mut BytesMut) -> Result<Option<(Self, PayloadType)>, ParseError> {
|
207 |
/// `init()` initialize a streaming signing state.
|
208 |
#[allow(clippy::uninit_assumed_init)]
|
209 |
pub fn init() -> State {
|
44 |
// push a dummy thing to idx zero so we can use NonZeroUsize
|
45 |
#[allow(clippy::uninit_assumed_init)]
|
46 |
data.push(Slot { data: unsafe { MaybeUninit::uninit().assume_init() }, next_free: None });
|
48 |
// push a empty slot to use as first entry
|
49 |
#[allow(clippy::uninit_assumed_init)]
|
50 |
data.push(Slot { data: unsafe { MaybeUninit::uninit().assume_init() }, next_free: None });
|
154 |
//and the first j characters of key_b
|
155 |
#[allow(clippy::uninit_assumed_init)]
|
156 |
let mut d : [[u8; MAX_KEY_LENGTH + 1]; MAX_KEY_LENGTH + 1] = unsafe { MaybeUninit::uninit().assume_init() };
|
75 |
#[allow(clippy::uninit_assumed_init)]
|
76 |
impl Default for Packet {
|
68 |
#[cfg(target_os = "linux")]
|
69 |
#[allow(clippy::uninit_assumed_init)]
|
70 |
pub fn recv_mmsg(sock: &UdpSocket, packets: &mut [Packet]) -> io::Result<(usize, usize)> {
|
125 |
let size = packets.len();
|
126 |
#[allow(clippy::uninit_assumed_init)]
|
127 |
let mut iovs = vec![unsafe { std::mem::MaybeUninit::uninit().assume_init() }; size];
|
428 |
#[allow(clippy::uninit_assumed_init)]
|
429 |
fn next(&mut self) -> Option<Self::Item> {
|
132 |
#[allow(clippy::uninit_assumed_init)]
|
133 |
pub fn snapshot(&mut self, emulator: &Emulator) {
|
2964 |
// Using uninitialized memory is ~30% faster
|
2965 |
#[allow(invalid_value, clippy::uninit_assumed_init)]
|
2966 |
let mut inner: Inner = mem::MaybeUninit::uninit().assume_init();
|
3097 |
// Using uninitialized memory is ~30% faster
|
3098 |
#[allow(invalid_value, clippy::uninit_assumed_init)]
|
3099 |
let mut inner: Inner = mem::MaybeUninit::uninit().assume_init();
|
192 |
#[skip_func]
|
193 |
#[allow(clippy::uninit_assumed_init)]
|
194 |
fn read<T: Pod + Sized>(&mut self, addr: Address) -> PartialResult<T>
|
26 |
#[allow(clippy::uninit_assumed_init)]
|
27 |
impl BmpHeader {
|
59 |
#[allow(clippy::uninit_assumed_init)]
|
60 |
impl CoreDumpHeader64 {
|
59 |
#[allow(clippy::uninit_assumed_init)]
|
60 |
impl CoreDumpHeader32 {
|
68 |
// Only trigger key release at end of repeated keys
|
69 |
#[allow(clippy::uninit_assumed_init)]
|
70 |
let mut supported_rtrn: i32 = std::mem::MaybeUninit::uninit().assume_init();
|
73 |
(xlib.XSelectInput)(display, root, xlib::KeyReleaseMask);
|
74 |
#[allow(clippy::uninit_assumed_init)]
|
75 |
let mut event: xlib::XEvent = std::mem::MaybeUninit::uninit().assume_init();
|
157 |
{
|
158 |
#[allow(clippy::uninit_assumed_init)]
|
159 |
let mut array = unsafe { MaybeUninit::<[T; N]>::uninit().assume_init() };
|
32 |
// the size of slice should be checked before call this function
|
33 |
#[allow(clippy::uninit_assumed_init)]
|
34 |
let mut b: [u8; 4] = unsafe { MaybeUninit::uninit().assume_init() };
|
107 |
#[allow(unsafe_code)]
|
108 |
#[allow(clippy::uninit_assumed_init)]
|
109 |
let mut command_buf: [u8; 4096] = unsafe { std::mem::MaybeUninit::uninit().assume_init() };
|
535 |
let mut curr: isize = 39;
|
536 |
#[allow(invalid_value, clippy::uninit_assumed_init)]
|
537 |
let mut buf: [u8; 41] = mem::MaybeUninit::uninit().assume_init();
|
166 |
#[inline(always)]
|
167 |
#[allow(clippy::uninit_assumed_init)]
|
168 |
pub fn new_uninit() -> Self {
|
199 |
/// Parses `Date` string.
|
200 |
#[allow(clippy::uninit_assumed_init)]
|
201 |
pub fn try_from_str(s: &str, date_order: DateOrder) -> Result<Self, DateTimeError> {
|
533 |
/// Parses `Internal` from string.
|
534 |
#[allow(clippy::uninit_assumed_init)]
|
535 |
pub fn try_from_str(
|
103 |
/// Parses `Time` string. type_mod should be 0 ~ 6, else will have no affect.
|
104 |
#[allow(clippy::uninit_assumed_init)]
|
105 |
pub fn try_from_str(
|
164 |
/// Parses `Timestamp` string. type_mode should be -1, or 1~6, else will be error.
|
165 |
#[allow(clippy::uninit_assumed_init)]
|
166 |
pub fn try_from_str(
|
39 |
#[allow(clippy::uninit_assumed_init)]
|
40 |
let mut states: [ryg_rans_sys::rans_64::Rans64State; N] =
|
36 |
unsafe {
|
37 |
#[allow(clippy::uninit_assumed_init)]
|
38 |
let states: [ryg_rans_sys::rans_64::Rans64State; N] =
|
39 |
#[allow(clippy::uninit_assumed_init)]
|
40 |
let mut states: [ryg_rans_sys::rans_byte::RansState; N] =
|
35 |
unsafe {
|
36 |
#[allow(clippy::uninit_assumed_init)]
|
37 |
let states: [ryg_rans_sys::rans_byte::RansState; N] =
|
35 |
}
|
36 |
#[allow(clippy::uninit_assumed_init)]
|
37 |
/// # Safety
|
50 |
#[allow(clippy::uninit_assumed_init)]
|
51 |
let mut attrs: pthread_condattr_t = MaybeUninit::uninit().assume_init();
|
79 |
unsafe {
|
80 |
#[allow(clippy::uninit_assumed_init)]
|
81 |
let mut cur_time: timespec = MaybeUninit::uninit().assume_init();
|
107 |
let padding = mem.align_offset(size_of::<*mut u8>() as _);
|
108 |
#[allow(clippy::uninit_assumed_init)]
|
109 |
let mut lock_attr: pthread_mutexattr_t = MaybeUninit::uninit().assume_init();
|
216 |
let padding = mem.align_offset(size_of::<*mut u8>() as _);
|
217 |
#[allow(clippy::uninit_assumed_init)]
|
218 |
let mut lock_attr: pthread_rwlockattr_t = MaybeUninit::uninit().assume_init();
|
17 |
#[deprecated]
|
18 |
#[allow(clippy::uninit_assumed_init)]
|
19 |
pub fn new() -> Self {
|
188 |
#[allow(clippy::uninit_assumed_init)]
|
189 |
fn decode(src: &mut BytesMut) -> Result<Option<(Self, PayloadType)>, ParseError> {
|
264 |
#[allow(clippy::uninit_assumed_init)]
|
265 |
fn decode(src: &mut BytesMut) -> Result<Option<(Self, PayloadType)>, ParseError> {
|
260 |
#[cfg(feature = "read-initializer")]
|
261 |
#[allow(clippy::uninit_assumed_init)]
|
262 |
unsafe {
|
277 |
#[cfg(feature = "read-initializer")]
|
278 |
#[allow(clippy::uninit_assumed_init)]
|
279 |
unsafe {
|
294 |
#[cfg(feature = "read-initializer")]
|
295 |
#[allow(clippy::uninit_assumed_init)]
|
296 |
unsafe {
|
126 |
inner: {
|
127 |
#[allow(clippy::uninit_assumed_init)]
|
128 |
let mut inner = unsafe { MaybeUninit::uninit().assume_init() };
|
1542 |
// an invalid `[usize; 3]`.
|
1543 |
#[allow(clippy::uninit_assumed_init)]
|
1544 |
Self(MaybeUninit::uninit().assume_init())
|
1601 |
// an invalid `[usize; 6]`.
|
1602 |
#[allow(clippy::uninit_assumed_init)]
|
1603 |
Self(MaybeUninit::uninit().assume_init())
|
130 |
#[allow(clippy::uninit_assumed_init)]
|
131 |
impl Default for Packet {
|
70 |
#[cfg(target_os = "linux")]
|
71 |
#[allow(clippy::uninit_assumed_init)]
|
72 |
pub fn recv_mmsg(sock: &UdpSocket, packets: &mut [Packet]) -> io::Result</*num packets:*/ usize> {
|
135 |
let size = packets.len();
|
136 |
#[allow(clippy::uninit_assumed_init)]
|
137 |
let mut iovs = vec![unsafe { std::mem::MaybeUninit::uninit().assume_init() }; size];
|
188 |
#[allow(clippy::uninit_assumed_init)]
|
189 |
fn decode(src: &mut BytesMut) -> Result<Option<(Self, PayloadType)>, ParseError> {
|
264 |
#[allow(clippy::uninit_assumed_init)]
|
265 |
fn decode(src: &mut BytesMut) -> Result<Option<(Self, PayloadType)>, ParseError> {
|
23 |
#[allow(clippy::uninit_assumed_init)]
|
24 |
unsafe fn uninitialized<T>() -> T {
|
82 |
value: unsafe {
|
83 |
#[allow(clippy::uninit_assumed_init)]
|
84 |
MaybeUninit::uninit().assume_init()
|
67 |
pub fn pek_csr(&mut self) -> Result<Certificate, Indeterminate<Error>> {
|
68 |
#[allow(clippy::uninit_assumed_init)]
|
69 |
let mut pek: Certificate = unsafe { MaybeUninit::uninit().assume_init() };
|
83 |
pub fn pdh_cert_export(&mut self) -> Result<certs::sev::Chain, Indeterminate<Error>> {
|
84 |
#[allow(clippy::uninit_assumed_init)]
|
85 |
let mut chain: [Certificate; 3] = unsafe { MaybeUninit::uninit().assume_init() };
|
86 |
#[allow(clippy::uninit_assumed_init)]
|
87 |
let mut pdh: Certificate = unsafe { MaybeUninit::uninit().assume_init() };
|
25 |
fn load<T: Sized + Copy>(&mut self) -> Result<T> {
|
26 |
#[allow(clippy::uninit_assumed_init)]
|
27 |
let mut t = unsafe { MaybeUninit::uninit().assume_init() };
|
153 |
}
|
154 |
#[allow(clippy::uninit_assumed_init)]
|
155 |
let mut ret: Projective = unsafe { std::mem::MaybeUninit::uninit().assume_init() };
|
130 |
#[allow(clippy::uninit_assumed_init)]
|
131 |
impl Default for Packet {
|
70 |
#[cfg(target_os = "linux")]
|
71 |
#[allow(clippy::uninit_assumed_init)]
|
72 |
pub fn recv_mmsg(sock: &UdpSocket, packets: &mut [Packet]) -> io::Result</*num packets:*/ usize> {
|
135 |
let size = packets.len();
|
136 |
#[allow(clippy::uninit_assumed_init)]
|
137 |
let iovec = std::mem::MaybeUninit::<iovec>::uninit();
|
56 |
assert!(mem::size_of::<PINS::Output>() == 0);
|
57 |
#[allow(clippy::uninit_assumed_init)]
|
58 |
mem::MaybeUninit::uninit().assume_init()
|
83 |
#[allow(clippy::uninit_assumed_init)]
|
84 |
unsafe {
|
78 |
#[allow(clippy::uninit_assumed_init)]
|
79 |
unsafe {
|
28 |
#[allow(clippy::uninit_assumed_init)]
|
29 |
let mut event: xlib::XEvent = std::mem::MaybeUninit::uninit().assume_init();
|
59 |
(xlib.XSelectInput)(display, root, xlib::KeyReleaseMask);
|
60 |
#[allow(clippy::uninit_assumed_init)]
|
61 |
let mut event: xlib::XEvent = std::mem::MaybeUninit::uninit().assume_init();
|
178 |
{
|
179 |
#[allow(clippy::uninit_assumed_init)]
|
180 |
let mut stat: libc::stat = unsafe { mem::MaybeUninit::uninit().assume_init() };
|
203 |
#[allow(clippy::uninit_assumed_init)]
|
204 |
let mut stat: libc::stat = unsafe { mem::MaybeUninit::uninit().assume_init() };
|
213 |
pub fn fstat(&self) -> Result<libc::stat> {
|
214 |
#[allow(clippy::uninit_assumed_init)]
|
215 |
let mut stat: libc::stat = unsafe { mem::MaybeUninit::uninit().assume_init() };
|
27 |
while (device = IOIteratorNext(iter)) == () && device > 0 {
|
28 |
#[allow(clippy::uninit_assumed_init)]
|
29 |
let mut props = MaybeUninit::<CFMutableDictionaryRef>::uninit();
|
28 |
while (device = IOIteratorNext(iter)) == () && device > 0 {
|
29 |
#[allow(clippy::uninit_assumed_init)]
|
30 |
let mut props: CFMutableDictionaryRef = MaybeUninit::uninit().assume_init();
|
142 |
#[allow(clippy::uninit_assumed_init)]
|
143 |
impl Default for Packet {
|
70 |
#[cfg(target_os = "linux")]
|
71 |
#[allow(clippy::uninit_assumed_init)]
|
72 |
pub fn recv_mmsg(sock: &UdpSocket, packets: &mut [Packet]) -> io::Result</*num packets:*/ usize> {
|
135 |
let size = packets.len();
|
136 |
#[allow(clippy::uninit_assumed_init)]
|
137 |
let iovec = std::mem::MaybeUninit::<iovec>::uninit();
|
22 |
impl Compreesor {
|
23 |
#[allow(clippy::uninit_assumed_init)]
|
24 |
#[allow(invalid_value)]
|
116 |
pub fn parse_headers(src: &mut BytesMut) -> usize {
|
117 |
#![allow(invalid_value, clippy::uninit_assumed_init)]
|
1 |
#![allow(clippy::uninit_assumed_init)]
|
2 |
extern crate rustc_version;
|
18 |
dead_code,
|
19 |
clippy::uninit_assumed_init,
|
20 |
clippy::too_many_arguments,
|
21 |
clippy::cognitive_complexity,
|
22 |
clippy::uninit_assumed_init,
|
23 |
clippy::excessive_precision,
|
15 |
#![allow(dead_code)]
|
16 |
#![allow(clippy::uninit_assumed_init, clippy::upper_case_acronyms)]
|
15 |
#![allow(dead_code)]
|
16 |
#![allow(clippy::uninit_assumed_init, clippy::upper_case_acronyms)]
|
23 |
#![allow(dead_code, non_camel_case_types)]
|
24 |
#![allow(clippy::uninit_assumed_init, clippy::upper_case_acronyms)]
|
2 |
#![allow(non_camel_case_types)]
|
3 |
#![allow(clippy::uninit_assumed_init)]
|
166 |
pub(crate) fn from_handle<T: Read>(mut handle: T) -> InternalResult<Header> {
|
167 |
#![allow(clippy::uninit_assumed_init)]
|
168 |
let mut buffer: [u8; Header::BASE_SIZE] = [0u8; Header::BASE_SIZE];
|