mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-01 16:04:33 +01:00
Fixed mem::uninitialized warnings
This commit is contained in:
parent
2e3a889991
commit
a1abbbbea7
1 changed files with 2 additions and 2 deletions
|
@ -1949,13 +1949,13 @@ fn pre_init(ctxt: &Context, app: &App, analysis: &Analysis) -> proc_macro2::Toke
|
||||||
// these are `MaybeUninit` arrays
|
// these are `MaybeUninit` arrays
|
||||||
for task in ctxt.tasks.values() {
|
for task in ctxt.tasks.values() {
|
||||||
let inputs = &task.inputs;
|
let inputs = &task.inputs;
|
||||||
exprs.push(quote!(#inputs.write(core::mem::uninitialized());))
|
exprs.push(quote!(#inputs.write(core::mem::MaybeUninit::uninit());))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "timer-queue")]
|
#[cfg(feature = "timer-queue")]
|
||||||
for task in ctxt.tasks.values() {
|
for task in ctxt.tasks.values() {
|
||||||
let scheduleds = &task.scheduleds;
|
let scheduleds = &task.scheduleds;
|
||||||
exprs.push(quote!(#scheduleds.write(core::mem::uninitialized());))
|
exprs.push(quote!(#scheduleds.write(core::mem::MaybeUninit::uninit());))
|
||||||
}
|
}
|
||||||
|
|
||||||
// these are `MaybeUninit` `ReadyQueue`s
|
// these are `MaybeUninit` `ReadyQueue`s
|
||||||
|
|
Loading…
Reference in a new issue